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 269282

Summary: NPE in unit tests
Product: cnd Reporter: Vladimir Kvashin <vkvashin>
Component: RemoteAssignee: Vladimir Kvashin <vkvashin>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Kvashin 2016-12-09 11:34:54 UTC
in hudson/job/cnd-test-ubuntu.x86_64/13082/
and other tests:

SEVERE: Error in RequestProcessor org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessorImpl
org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.NullPointerException
    at org.openide.util.RequestProcessor.post(RequestProcessor.java:420)
    at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport.submitTask(ProjectActionSupport.java:281)
    at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport.fireActionPerformed(ProjectActionSupport.java:278)
    at org.netbeans.modules.cnd.makeproject.MakeActionProviderImpl$1$1.runImpl(MakeActionProviderImpl.java:343)
    at org.netbeans.modules.cnd.utils.NamedRunnable.run(NamedRunnable.java:62)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Caused by: java.lang.NullPointerException
    at org.netbeans.modules.cnd.remote.sync.FtpSyncWorker.synchronizeImpl(FtpSyncWorker.java:184)
    at org.netbeans.modules.cnd.remote.sync.FtpSyncWorker.startup(FtpSyncWorker.java:782)
    at org.netbeans.modules.cnd.remote.sync.RemoteBuildProjectActionHandler.execute(RemoteBuildProjectActionHandler.java:180)
    at org.netbeans.modules.cnd.makeproject.api.ProjectActionSupport$EventsProcessorImpl.run(ProjectActionSupport.java:589)
    ... 4 more
Comment 1 Vladimir Kvashin 2016-12-09 11:36:03 UTC
This is probably caused by regression descriped in issue 269281.
Anyhow the code shows that null checks are done in some places, but are absent in other places.
Comment 2 Vladimir Kvashin 2016-12-09 11:56:58 UTC
fixed in 5be103dfcc13 on enum/release82
Comment 3 Quality Engineering 2016-12-11 02:35:31 UTC
Integrated into 'main-silver', will be available in build *201612110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/846a9d946296
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #269282 - NPE in unit tests
(transplanted from 5be103dfcc13b5f7ea5be60ea8f5696c14f08874)