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.

Bug 242795 - NullPointerException at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesPerformer.removeUnusedNamespaces
Summary: NullPointerException at org.netbeans.modules.web.jsf.editor.actions.FixNamesp...
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
: 242950 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-11 14:43 UTC by Vladimir Riha
Modified: 2014-06-01 17:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208316


Attachments
stacktrace (2.12 KB, text/plain)
2014-03-11 14:43 UTC, Vladimir Riha
Details
stacktrace (2.12 KB, text/plain)
2014-05-16 07:15 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-03-11 14:43:23 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) Client VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Linux

User Comments:
vriha: Fixing namespaces in JSF 2.2 project, (code from http://services.netbeans.org/synergy/client/app/#/case/5209/suite/1382/v/1 )




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesPerformer.removeUnusedNamespaces(FixNamespacesPerformer.java:101)
   at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesPerformer.access$200(FixNamespacesPerformer.java:62)
   at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesPerformer$1.run(FixNamespacesPerformer.java:90)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:321)
   at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesPerformer.perform(FixNamespacesPerformer.java:82)
   at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesAction.performFixNamespaces(FixNamespacesAction.java:173)
Comment 1 Vladimir Riha 2014-03-11 14:43:24 UTC
Created attachment 145952 [details]
stacktrace
Comment 2 Martin Fousek 2014-03-21 05:54:53 UTC
*** Bug 242950 has been marked as a duplicate of this bug. ***
Comment 3 Martin Fousek 2014-05-16 07:15:54 UTC
Created attachment 147288 [details]
stacktrace

Added pm (primefaces mobile) component and attempt to Fix Namespaces of the Facelet:

My steps were:
1, <pm:page></pm:page> into editor
2, Fix namespaces, choose PF mobile and confirm
Comment 4 Martin Fousek 2014-05-16 07:39:44 UTC
Caused likely by invoke Fix Namespaces action over the non-xhtml page (like in case of the primefaces welcome page).
Comment 5 Martin Fousek 2014-05-23 13:12:00 UTC
Fixing of this was not so trivial as it could looks like. :) Please give it some testing whether it will work well to you then. Thanks a lot.

Fixed in web-main #1777f7d2024f.
Comment 6 Quality Engineering 2014-05-25 01:31:18 UTC
Integrated into 'main-silver', will be available in build *201405250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1777f7d2024f
User: Martin Fousek <marfous@netbeans.org>
Log: #242795 - NullPointerException at org.netbeans.modules.web.jsf.editor.actions.FixNamespacesPerformer.removeUnusedNamespaces
Comment 7 Vladimir Riha 2014-05-30 10:57:11 UTC
Thank you, I tried and found issue 244810. I don't know if it's related to this fix but it works in 8.0
Comment 8 Martin Fousek 2014-05-30 11:16:18 UTC
Ok, I'll take a look later. In any case, thanks for testing that!
Comment 9 Vladimir Riha 2014-06-01 17:07:30 UTC
Thank you