- NP: Load of known null value in org.apache.ofbiz.entity.serialize.XmlSerializer.serializeSingle(Object, Document)
The variable referenced at this point is known to be null due to an earlier check against null. Although this is valid, it might be a mistake (perhaps you intended to refer to a different variable, or perhaps the earlier check to see if the variable is null should have been a check to see if it was non-null).
- LI: Incorrect lazy initialization of static field org.apache.ofbiz.entity.serialize.XmlSerializer.simpleDateFormatter in org.apache.ofbiz.entity.serialize.XmlSerializer.getDateFormat()
This method contains an unsynchronized lazy initialization of a non-volatile static field. Because the compiler or processor may reorder instructions, threads are not guaranteed to see a completely initialized object, if the method can be called by multiple threads. You can make the field volatile to correct the problem. For more information, see the Java Memory Model web site.