Bug 267921 - NPE FileOperationsProvider$FileOperations.isDirectory
NPE FileOperationsProvider$FileOperations.isDirectory
Status: RESOLVED FIXED
Product: cnd
Classification: Unclassified
Component: Remote
8.1
PC Windows 10 x64
: P2 (vote)
: 8.2
Assigned To: Vladimir Kvashin
issues@cnd
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-07 11:20 UTC by Vladimir Kvashin
Modified: 2016-09-08 01:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2016-09-07 11:20:49 UTC
While running IDE on Windows I've got an NPE:

java.lang.NullPointerException
	at org.netbeans.modules.remote.impl.fileoperations.spi.FileOperationsProvider$FileOperations.isDirectory(FileOperationsProvider.java:175)
	at org.netbeans.modules.remotefs.versioning.spi.FileProxyProviderImpl$FileOperationsImpl.isDirectory(FileProxyProviderImpl.java:124)
	at org.netbeans.modules.versioning.core.api.VCSFileProxy.isDirectory(VCSFileProxy.java:280)
	at org.netbeans.modules.versioning.core.filesystems.VCSFilesystemInterceptor.getInterceptor(VCSFilesystemInterceptor.java:462)
	at org.netbeans.modules.versioning.core.filesystems.VCSFilesystemInterceptor.fileLocked(VCSFilesystemInterceptor.java:381)
	at org.netbeans.modules.remotefs.versioning.spi.FilesystemInterceptorProviderImpl$FilesystemInterceptorImpl.fileLocked(FilesystemInterceptorProviderImpl.java:252)
	at org.netbeans.modules.remote.impl.fs.RemotePlainFile.lockImpl(RemotePlainFile.java:330)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.lock(RemoteFileObjectBase.java:653)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObject.lock(RemoteFileObject.java:303)
	at org.openide.filesystems.FileObject.getOutputStream(FileObject.java:812)
	at org.netbeans.modules.cnd.makeproject.api.support.SmartOutputStream.realWrite(SmartOutputStream.java:169)
	at org.netbeans.modules.cnd.makeproject.api.support.SmartOutputStream.close(SmartOutputStream.java:149)
	at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:320)
	at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:149)
	at java.io.OutputStreamWriter.close(OutputStreamWriter.java:233)
	at java.io.BufferedWriter.close(BufferedWriter.java:266)
	at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationMakefileWriter.closeWriter(ConfigurationMakefileWriter.java:2021)
	at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationMakefileWriter.writeMakefileImpl(ConfigurationMakefileWriter.java:340)
	at org.netbeans.modules.cnd.makeproject.configurations.ConfigurationMakefileWriter.write(ConfigurationMakefileWriter.java:134)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.saveWorker(MakeConfigurationDescriptor.java:1196)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.access$100(MakeConfigurationDescriptor.java:128)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor$SaveRunnable.run(MakeConfigurationDescriptor.java:1160)
	at org.netbeans.modules.cnd.makeproject.ui.utils.LongOperationImpl.executeLongOperation2(LongOperationImpl.java:74)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.save(MakeConfigurationDescriptor.java:1104)
	at org.netbeans.modules.cnd.makeproject.api.configurations.MakeConfigurationDescriptor.save(MakeConfigurationDescriptor.java:1098)
	at org.netbeans.modules.cnd.makeproject.MakeProjectImpl.save(MakeProjectImpl.java:1621)
	at org.netbeans.modules.cnd.makeproject.MakeProjectImpl.onProjectClosed(MakeProjectImpl.java:1586)
	at org.netbeans.modules.cnd.makeproject.MakeProjectImpl.access$1500(MakeProjectImpl.java:155)
	at org.netbeans.modules.cnd.makeproject.MakeProjectImpl$ProjectOpenedHookImpl.projectClosed(MakeProjectImpl.java:1641)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectClosed(ProjectOpenedHook.java:89)
	at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectClosed(UILookupMergerSupport.java:256)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectClosed(ProjectOpenedHook.java:89)
[catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyClosed(OpenProjectList.java:1322)
	at org.netbeans.modules.project.ui.OpenProjectList.shutdown(OpenProjectList.java:1219)
	at org.netbeans.modules.project.ui.ProjectUiModule.close(ProjectUiModule.java:70)
	at org.netbeans.core.startup.NbInstaller.closeAsync(NbInstaller.java:739)
	at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:2201)
	at org.netbeans.core.startup.ModuleSystem.shutDownAsync(ModuleSystem.java:349)
	at org.netbeans.core.NbLifeExit.doExit(NbLifeExit.java:137)
	at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:94)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:118)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:93)
	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:89)
	at org.openide.util.Mutex.readAccess(Mutex.java:260)
	at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:213)
	at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:119)
	at org.netbeans.core.windows.view.ui.MainWindow$9.windowClosing(MainWindow.java:546)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.Window.processWindowEvent(Window.java:2054)
	at javax.swing.JFrame.processWindowEvent(JFrame.java:305)
	at java.awt.Window.processEvent(Window.java:2013)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
INFO [org.netbeans.modules.cnd.api.project.NativeProjectRegistry]: Close native project pkg-config //VBOXSVR/vkvashin/NetBeansProjects/pkg-config
SEVERE [org.netbeans.core.modules]
java.lang.NullPointerException
	at org.netbeans.modules.remote.impl.fileoperations.spi.FileOperationsProvider$FileOperations.isDirectory(FileOperationsProvider.java:175)
	at org.netbeans.modules.remotefs.versioning.spi.FileProxyProviderImpl$FileOperationsImpl.isDirectory(FileProxyProviderImpl.java:124)
	at org.netbeans.modules.versioning.core.api.VCSFileProxy.isDirectory(VCSFileProxy.java:280)
	at org.netbeans.modules.versioning.core.filesystems.VCSFilesystemInterceptor.getInterceptor(VCSFilesystemInterceptor.java:462)
	at org.netbeans.modules.versioning.core.filesystems.VCSFilesystemInterceptor.fileLocked(VCSFilesystemInterceptor.java:381)
	at org.netbeans.modules.remotefs.versioning.spi.FilesystemInterceptorProviderImpl$FilesystemInterceptorImpl.fileLocked(FilesystemInterceptorProviderImpl.java:252)
	at org.netbeans.modules.remote.impl.fs.RemotePlainFile.lockImpl(RemotePlainFile.java:330)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObjectBase.lock(RemoteFileObjectBase.java:653)
	at org.netbeans.modules.remote.impl.fs.RemoteFileObject.lock(RemoteFileObject.java:303)
	at org.netbeans.modules.cnd.makeproject.MakeProjectHelperImpl.lambda$saveXml$0(MakeProjectHelperImpl.java:361)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:519)
	at org.netbeans.modules.cnd.makeproject.MakeProjectHelperImpl.runSaveAA(MakeProjectHelperImpl.java:337)
	at org.netbeans.modules.cnd.makeproject.MakeProjectHelperImpl.saveXml(MakeProjectHelperImpl.java:353)
	at org.netbeans.modules.cnd.makeproject.MakeProjectHelperImpl.save(MakeProjectHelperImpl.java:609)
	at org.netbeans.modules.cnd.makeproject.MakeBasedProjectFactorySingleton.saveProject(MakeBasedProjectFactorySingleton.java:247)
	at org.netbeans.modules.projectapi.nb.NbProjectManager$7.run(NbProjectManager.java:679)
	at org.netbeans.modules.projectapi.nb.NbProjectManager$7.run(NbProjectManager.java:671)
	at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:250)
	at org.openide.util.Mutex.writeAccess(Mutex.java:299)
	at org.netbeans.modules.projectapi.nb.NbProjectManager.saveAllProjects(NbProjectManager.java:671)
	at org.netbeans.api.project.ProjectManager.saveAllProjects(ProjectManager.java:300)
	at org.netbeans.modules.project.ui.ProjectUiModule.close(ProjectUiModule.java:73)
[catch] at org.netbeans.core.startup.NbInstaller.closeAsync(NbInstaller.java:739)
	at org.netbeans.ModuleManager.shutDownAsync(ModuleManager.java:2201)
	at org.netbeans.core.startup.ModuleSystem.shutDownAsync(ModuleSystem.java:349)
	at org.netbeans.core.NbLifeExit.doExit(NbLifeExit.java:137)
	at org.netbeans.core.NbLifeExit.run(NbLifeExit.java:94)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:118)
	at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:93)
	at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:89)
	at org.openide.util.Mutex.readAccess(Mutex.java:260)
	at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:213)
	at org.netbeans.core.NbLifecycleManager.exit(NbLifecycleManager.java:119)
	at org.netbeans.core.windows.view.ui.MainWindow$9.windowClosing(MainWindow.java:546)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
	at java.awt.Window.processWindowEvent(Window.java:2054)
	at javax.swing.JFrame.processWindowEvent(JFrame.java:305)
	at java.awt.Window.processEvent(Window.java:2013)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
Comment 2 Quality Engineering 2016-09-08 01:56:42 UTC
Integrated into 'main-silver', will be available in build *201609080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/53fbccb84d40
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: Fixed #267921 - NPE FileOperationsProvider$FileOperations.isDirectory


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo