Community
Participate
Working Groups
Build ID: Source code from CVS (28.05.2007) Steps To Reproduce: I have been running Jtest's BugDetective feature on Eclipse source code downloaded from CVS on 28.05.2007 and it reported a possible NullPointerException at line 2707 of org.eclipse.jdt.core.dom.ASTConverter.java. The attached screenshot from BugDetective will help to understand the exact flow which may lead to the exception. Please let me know if this is a real problem or BugDetective is mistaken. Thank you! More information:
Created attachment 68987 [details] possible NullPointerException
Technically speaking, getTypeName() cannot return null. So we could add a null check to prevent the tool from reporting this issue, but it would never be null.
I don't think we should add a null check if there is no real reason for it.
Closing as INVALID since actual type reference passed in cannot return null for getTypeName().
Verified for 3.4M1