This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Given the following code: public class Bug2 { private final static String X = null; private final static String Y = X.trim(); public static void main(String[] args) { } } No null checks are performed at all, I would expect a warning when calling X.trim().