Invoke method toUpperCase on null value BSF on JDBC Provisioning Rule

Hello,
Getting below error JDBC Provisioning rule.
Is there any suggestions?
“[The application script threw an exception: java.lang.NullPointerException: Attempt to invoke method toUpperCase on null value BSF info: JDBC Provision Rule at line: 0 column: columnNo”,“The application script threw an exception: java.lang.NullPointerException: Attempt to invoke method toUpperCase on null value BSF info: JDBC Provision Rule at line: 0 column: columnNo”]

Hi @Ellanti ,
In this case, the method toUpperCase() is being called on a null value.
you can do null check on those values before invoking toUpper.As example

if (null != value) {  
    value = value.toUpperCase();  
} else { 
////
} 
1 Like

Hi @gourab ,
Thank you, I will test with your suggestions

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.