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 251660

Summary: NullPointerException at org.netbeans.modules.web.project.Utils.isLibraryDirectoryBased
Product: javaee Reporter: pratikbansal15
Component: Web ProjectAssignee: Tomas Mysik <tmysik>
Status: RESOLVED FIXED    
Severity: normal CC: dkonecny
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 187960
Attachments: stacktrace

Description pratikbansal15 2015-04-05 09:37:00 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18
OS: Windows 7

User Comments:
GUEST: I am investigating why a project continues looking for lib jstl11

pratikbansal15: hiihiii

GUEST: struts2 pluhin

GUEST: Error occurred when select a PrimeFaces lib in "compile-time Libraries window:  Project Properties -> Compile -> Compile-time Libraries

GUEST: dasd




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.project.Utils.isLibraryDirectoryBased(Utils.java:466)
   at org.netbeans.modules.web.project.ui.customizer.ClassPathTableModel.setValueAt(ClassPathTableModel.java:119)
   at javax.swing.JTable.setValueAt(JTable.java:2741)
   at javax.swing.JTable.editingStopped(JTable.java:4723)
   at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:141)
   at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:368)
Comment 1 pratikbansal15 2015-04-05 09:37:02 UTC
Created attachment 153045 [details]
stacktrace
Comment 2 Tomas Mysik 2015-05-22 07:03:44 UTC
Seems to me that the library is corrupted since it does not have any classpath. Should be fixed now, please verify if possible.

Thanks.

http://hg.netbeans.org/web-main/rev/faeae9bd3a30
Comment 3 Quality Engineering 2015-05-23 08:00:59 UTC
Integrated into 'main-silver', will be available in build *201505230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/faeae9bd3a30
User: Tomas Mysik <tmysik@netbeans.org>
Log: #251660 - NullPointerException at org.netbeans.modules.web.project.Utils.isLibraryDirectoryBased