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 252580 - NullPointerException at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObjWindows.getFileObjectImpl
Summary: NullPointerException at org.netbeans.modules.masterfs.filebasedfs.fileobjects...
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-26 07:16 UTC by ymajoros
Modified: 2015-08-07 01:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 192452


Attachments
stacktrace (4.33 KB, text/plain)
2015-05-26 07:16 UTC, ymajoros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ymajoros 2015-05-26 07:16:32 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: Windows 7

User Comments:
GUEST: Creating new Maven Java project

GUEST: Created new project with existing sources > Error occurred during Clean and Build of loki-0.1.7

GUEST: refactoring a static method

GUEST: no idea, sorry

GUEST: Creating ne project

GUEST: Opening a file

GUEST: yes

ymajoros: didn't see anything :-D

GUEST: Trying to create a new project on a Samba share. Creating files and folders works fine in this exact location from within windows explorer.

GUEST: I'm new and don't know what I'm doing! LoL

I was creating a new project from a binary file: libloki.a, in the loki-0.1.7 library.

GUEST: uh oh

GUEST: ...

GUEST: Added maven dependency that didn't exist.

ymajoros: ?




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObjWindows.getFileObjectImpl(RootObjWindows.java:195)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObjWindows.getFileObject(RootObjWindows.java:175)
   at org.openide.filesystems.FileObject.getFileObject(FileObject.java:974)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObjWindows.getFileObject(RootObjWindows.java:81)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.RootObj.getFileObject(RootObj.java:254)
   at org.netbeans.modules.groovy.grailsproject.GrailsProjectFactory.isProject(GrailsProjectFactory.java:67)
Comment 1 ymajoros 2015-05-26 07:16:34 UTC
Created attachment 153858 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-08-05 15:41:41 UTC
Invalid FileObjectFactory was created, but it is hard to say why.
Added some logging to get more info when this happens:
http://hg.netbeans.org/core-main/rev/e3a78b06bfd8
Comment 3 Quality Engineering 2015-08-07 01:16:35 UTC
Integrated into 'main-silver', will be available in build *201508070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e3a78b06bfd8
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #252580: Log creation of FileObjectFactory with invalid root