Sorry Chirag,
This is OFBiz OOTB in 3 places
It seems to me that it should be rather fixed using
if (UtilValidate.isEmpty(skipPermissionCheck) || (!"true".equalsIgnoreCase(skipPermissionCheck).&&
!"granted".equalsIgnoreCase(skipPermissionCheck)))) {
There is even one place where it does not make any sense.
I have opened https://issues.apache.org/jira/browse/OFBIZ-4198 and provided a patch. I have not enough time at the moment to test.
If someone could confirm it would be cool....
Thanks
Jacques
Chirag Manocha wrote:
this is not OFBiz specific error. this is Core Java error.
you are trying to call a instance method on null object.
Your skipPermissionCheck is null.
and you are calling method equalsIgnoreCase on the object.
Thanks and Regards
if (UtilValidate.isEmpty(skipPermissionCheck)
(!skipPermissionCheck.equalsIgnoreCase("true") &&
!skipPermissionCheck.equalsIgnoreCase("granted"))) {
I don't know if you are aware of that?
Dimitri Valax
Consultant
dimitri.va...@valtech.fr<mailto:dimitri.va...@valtech.fr>
Mobile : +33 (0)6 63 23 95 13
Valtech
5 avenue Marcel Dassault - Batiment A
31500 Toulouse
Tél. : +33 (0)5 62 47 64 00
Fax : +33 (0)5 62 47 64 10
www.valtech.fr<http://www.valtech.fr/>