Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Trunk
-
None
Description
I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId)
cause the former can throw NullPointerException if the variable found to be NULL.
This pattern should be applied to
- Java Files
- Groovy Files
- FTL Files
Here is the reference for the discussion done on the dev list.
http://markmail.org/message/iqfaab3fl3ukxchy
Attachments
Attachments
Issue Links
- breaks
-
OFBIZ-9481 order page shows widget exceptions
- Closed
- causes
-
OFBIZ-10834 Uploading image to data resource
- Closed
- incorporates
-
OFBIZ-11929 Fix Literals comparisons with variable to avoid NPE
- Closed