HHH-15168 Fix NPE in NativeQueryImpl.ParameterInterpretationImpl#toString
This commit is contained in:
parent
6f0ec52e81
commit
cf152d57b1
|
@ -1515,16 +1515,15 @@ public class NativeQueryImpl<R>
|
||||||
final StringBuilder buffer = new StringBuilder( "ParameterInterpretationImpl (" )
|
final StringBuilder buffer = new StringBuilder( "ParameterInterpretationImpl (" )
|
||||||
.append( sqlString )
|
.append( sqlString )
|
||||||
.append( ") : {" );
|
.append( ") : {" );
|
||||||
|
final String lineSeparator = System.lineSeparator();
|
||||||
for ( int i = 0, size = parameterList.size(); i < size; i++ ) {
|
if ( CollectionHelper.isNotEmpty( parameterList ) ) {
|
||||||
buffer.append( System.lineSeparator() ).append( " " );
|
for ( int i = 0, size = parameterList.size(); i < size; i++ ) {
|
||||||
|
buffer.append( lineSeparator ).append( " ," );
|
||||||
if ( i != size - 1 ) {
|
|
||||||
buffer.append( "," );
|
|
||||||
}
|
}
|
||||||
|
buffer.setLength( buffer.length() - 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
return buffer.append( System.lineSeparator() ).append( "}" ).toString();
|
return buffer.append( lineSeparator ).append( "}" ).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue