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 255912 - NullPointerException at org.netbeans.modules.web.clientproject.ClientSideProjectConvertor$ConvertorClassPathProvider.findClassPath
Summary: NullPointerException at org.netbeans.modules.web.clientproject.ClientSideProj...
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 257537 257766 259169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-13 21:37 UTC by athompson
Modified: 2016-05-10 11:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219709


Attachments
stacktrace (5.02 KB, text/plain)
2015-10-13 21:37 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2015-10-13 21:37:47 UTC
Build: NetBeans IDE Dev (Build 201510130002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Mac OS X

User Comments:
GUEST: Execute npm install in shell

GUEST: foo

GUEST: loading node project

GUEST: Open a folder in node_modules

GUEST: avatar server project

GUEST: Do nothing

GUEST: searching  js file

GUEST: errors while typing in open file dialog

athompson: updated git project (pulled from uopstream) and went to the "files" tab

GUEST: I simply created a project and an error occurs.

GUEST: npm install in bash




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.clientproject.ClientSideProjectConvertor$ConvertorClassPathProvider.findClassPath(ClientSideProjectConvertor.java:212)
   at org.netbeans.modules.java.project.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:75)
   at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:674)
   at org.netbeans.modules.parsing.impl.indexing.errors.Utilities.getSourceClassPathFor(Utilities.java:84)
   at org.netbeans.modules.parsing.ui.indexing.errors.ErrorAnnotator$1.run(ErrorAnnotator.java:313)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
Comment 1 athompson 2015-10-13 21:37:49 UTC
Created attachment 156701 [details]
stacktrace
Comment 2 Tomas Mysik 2015-10-14 05:08:05 UTC
Possible patch candidate, thanks.
Comment 3 Tomas Mysik 2015-10-14 06:06:41 UTC
Should be fixed now, also for PHP project convertor (for composer.json).

Thanks.

http://hg.netbeans.org/web-main/rev/fa8f34a3b86c
Comment 4 Quality Engineering 2015-10-15 01:22:57 UTC
Integrated into 'main-silver', will be available in build *201510150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fa8f34a3b86c
User: Tomas Mysik <tmysik@netbeans.org>
Log: #255912 - NullPointerException at org.netbeans.modules.web.clientproject.ClientSideProjectConvertor$ConvertorClassPathProvider.findClassPath
Comment 5 Jiri Prox 2015-12-17 12:40:48 UTC
verified in trunk
Comment 6 Tomas Mysik 2016-01-12 12:27:40 UTC
*** Bug 257537 has been marked as a duplicate of this bug. ***
Comment 7 Tomas Mysik 2016-01-27 08:58:19 UTC
Transplanted to release81 branch of releases repo:

http://hg.netbeans.org/releases/rev/18b21295b008
http://hg.netbeans.org/releases/rev/f3b2b244138b

Please verify, if possible. Thanks.
Comment 8 Tomas Mysik 2016-02-01 09:06:53 UTC
*** Bug 257766 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Mysik 2016-05-10 11:28:30 UTC
*** Bug 259169 has been marked as a duplicate of this bug. ***