From 7e160d7b49dfbde419623474fc5924affe6930ef Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Wed, 16 Nov 2016 13:09:14 -0500 Subject: [PATCH] HHH-11250 - Fixed NullPointerException when defined filter name contains a dot. --- .../java/org/hibernate/engine/spi/LoadQueryInfluencers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/LoadQueryInfluencers.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/LoadQueryInfluencers.java index 61a54c0ffa..726429db38 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/LoadQueryInfluencers.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/LoadQueryInfluencers.java @@ -139,7 +139,7 @@ public class LoadQueryInfluencers implements Serializable { } public static String[] parseFilterParameterName(String filterParameterName) { - int dot = filterParameterName.indexOf( '.' ); + int dot = filterParameterName.lastIndexOf( '.' ); if ( dot <= 0 ) { throw new IllegalArgumentException( "Invalid filter-parameter name format" ); }