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 223835 - NullPointerException in Class View (automatic test)
Summary: NullPointerException in Class View (automatic test)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-14 10:24 UTC by soldatov
Modified: 2012-12-17 12:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2012-12-14 10:24:43 UTC
I can't reproduce this problem, but automatic test fails for 2 days
Scenario:
- Project contains 2 file
- Check Classes tab
==> ok
- Exclude file from build (General|Excluded From Build)
==> Classes tab is not updated and NPE

java.lang.NullPointerException
	at org.netbeans.modules.cnd.classview.SmartChangeEvent.doAdd(SmartChangeEvent.java:145)
	at org.netbeans.modules.cnd.classview.SmartChangeEvent.<init>(SmartChangeEvent.java:66)
	at org.netbeans.modules.cnd.classview.ClassViewUpdater.scheduleUpdate(ClassViewUpdater.java:212)
	at org.netbeans.modules.cnd.classview.ClassViewModel.scheduleUpdate(ClassViewModel.java:125)
	at org.netbeans.modules.cnd.classview.ClassView.modelChanged(ClassView.java:324)
	at org.netbeans.modules.cnd.classview.ClassViewTopComponent.modelChanged(ClassViewTopComponent.java:288)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ListenersImpl.fireModelChanged(ListenersImpl.java:145)
	at org.netbeans.modules.cnd.modelimpl.csm.core.Notificator.flush(Notificator.java:239)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onFileImplRemoved(ProjectBase.java:2486)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl.onFileImplRemoved(ProjectImpl.java:214)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.checkForRemoved(ProjectBase.java:1366)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.onFileItemsRemoved(ProjectBase.java:2420)
	at org.netbeans.modules.cnd.modelimpl.csm.core.NativeProjectListenerImpl$2.run(NativeProjectListenerImpl.java:211)
	at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl$3.run(ModelImpl.java:410)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2043)
Comment 1 Alexander Simon 2012-12-14 10:58:56 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/5613aeb19328
Comment 2 Quality Engineering 2012-12-17 12:37:20 UTC
Integrated into 'main-golden', will be available in build *201212170919* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5613aeb19328
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #223835 NullPointerException in Class View (automatic test)