Steps to reproduce:
-Create new 1.4 VW JSF project with Tomcat 6 as target server and 'Do Not Append any Library' option selected.
NPE will be thrown:
(Full exception attached)
Since there is no JSF1.1 RI available to the project, the project should Show component errors or source file errors.
*It should not throw an NPE.*
From the exception it seems to be an insync issue.
Created attachment 43983 [details]
*** Issue 107138 has been marked as a duplicate of this issue. ***
Deva, this is happening because in the given scenario the project does not have the required libraries. Therefore
there is a import error in the newly created .java file of the first page itself. As a result addXRefAccessors() thows
an NPE. I know we removed the ensureXrefAccessor() stuff and replaced it with addXRefAccessors(), however in such
scenarios we have two choices. We do addXRefAccessors() only for the first creation. Howevere we may have to delay it
till we are able to do addXRefAccessors() once on a error free .java file. What do you think?
Also I partly consider this a user error and also an unlikely scenario.
In recent builds, we see a different exception(seems to be same as #110005/#109684) when we try to reproduce this
problem. Will look into it once the blocking issue is resolved
Trying to insert code when the model is busted was resulting in NPE
/cvs/visualweb/insync/src/org/netbeans/modules/visualweb/insync/models/FacesModelSet.java,v <-- FacesModelSet.java
new revision: 1.17; previous revision: 1.16
Updating the bug status
Verified fix on build : 200708011200