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 221953 - NullPointerException at org.netbeans.modules.css.visual.DocumentViewModel.update
Summary: NullPointerException at org.netbeans.modules.css.visual.DocumentViewModel.update
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 222126 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-12 11:59 UTC by Alexander Simon
Modified: 2012-11-21 13:47 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194986


Attachments
stacktrace (2.29 KB, text/plain)
2012-11-12 11:59 UTC, Alexander Simon
Details
stacktrace (1.38 KB, text/plain)
2012-11-15 15:25 UTC, Jiri Prox
Details
stacktrace (1.38 KB, text/plain)
2012-11-15 23:34 UTC, Exceptions Reporter
Details
stacktrace (1.38 KB, text/plain)
2012-11-16 00:13 UTC, Exceptions Reporter
Details
stacktrace (1.38 KB, text/plain)
2012-11-20 17:52 UTC, augcampos
Details
stacktrace (1.38 KB, text/plain)
2012-11-20 18:58 UTC, augcampos
Details
stacktrace (1.38 KB, text/plain)
2012-11-20 19:22 UTC, augcampos
Details
stacktrace (1.38 KB, text/plain)
2012-11-21 12:04 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-11-12 11:59:17 UTC
Build: NetBeans IDE Dev (Build 20121112-bc81a441b242)
VM: Java HotSpot(TM) Client VM, 20.12-b01, Java(TM) SE Runtime Environment, 1.6.0_37-b06
OS: SunOS

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.css.visual.DocumentViewModel.update(DocumentViewModel.java:170)
   at org.netbeans.modules.css.visual.DocumentViewModel.getFilesToRulesMap(DocumentViewModel.java:159)
   at org.netbeans.modules.css.visual.DocumentNode$DocumentChildFactory$1.run(DocumentNode.java:123)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:584)
   at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:380)
   at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:363)
Comment 1 Alexander Simon 2012-11-12 11:59:19 UTC
Created attachment 127614 [details]
stacktrace
Comment 2 Marian Mirilovic 2012-11-14 16:47:30 UTC
*** Bug 222126 has been marked as a duplicate of this bug. ***
Comment 3 Jiri Prox 2012-11-15 15:25:32 UTC
Created attachment 127885 [details]
stacktrace

NPE when opening code completion in php file
Comment 4 Exceptions Reporter 2012-11-15 15:25:41 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=194986
Comment 5 Exceptions Reporter 2012-11-15 23:34:30 UTC
Created attachment 127897 [details]
stacktrace
Comment 6 Exceptions Reporter 2012-11-16 00:13:34 UTC
Created attachment 127901 [details]
stacktrace
Comment 7 Exceptions Reporter 2012-11-19 11:04:35 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=194986
Comment 8 Marek Fukala 2012-11-20 09:33:45 UTC
cause by:

SEVERE [org.openide.util.Exceptions]
org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.RAMDirectory@6b9e6382 lockFactory=org.apache.lucene.store.SingleInstanceLockFactory@6b972300: files: []
	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:712)
	at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:75)
	at org.apache.lucene.index.IndexReader.open(IndexReader.java:462)
	at org.apache.lucene.index.IndexReader.open(IndexReader.java:322)
	at org.netbeans.modules.parsing.lucene.MemoryIndex.getReader(MemoryIndex.java:306)
	at org.netbeans.modules.parsing.lucene.MemoryIndex.query(MemoryIndex.java:116)
	at org.netbeans.modules.parsing.lucene.DocumentIndexImpl.query(DocumentIndexImpl.java:226)
	at org.netbeans.modules.parsing.impl.indexing.lucene.LayeredDocumentIndex.query(LayeredDocumentIndex.java:136)
	at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport$1.call(QuerySupport.java:294)
	at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport$1.call(QuerySupport.java:254)
	at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
	at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
	at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
	at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport.query(QuerySupport.java:254)
	at org.netbeans.modules.css.indexing.api.CssIndex.createAllDependencies(CssIndex.java:449)
	at org.netbeans.modules.css.indexing.api.CssIndex.getAllDependencies(CssIndex.java:442)
[catch] at org.netbeans.modules.css.indexing.api.CssIndex.getDependencies(CssIndex.java:412)
	at org.netbeans.modules.css.visual.DocumentViewModel.update(DocumentViewModel.java:169)
	at org.netbeans.modules.css.visual.DocumentViewModel.getFilesToRulesMap(DocumentViewModel.java:159)
	at org.netbeans.modules.css.visual.DocumentNode$DocumentChildren.refreshKeysImpl(DocumentNode.java:138)
	at org.netbeans.modules.css.visual.DocumentNode$DocumentChildren.refreshKeys(DocumentNode.java:133)
	at org.netbeans.modules.css.visual.DocumentNode$DocumentChildren.stateChanged(DocumentNode.java:153)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119)
	at org.netbeans.modules.css.visual.DocumentViewModel.stateChanged(DocumentViewModel.java:145)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119)
	at org.netbeans.modules.css.indexing.api.CssIndex.notifyChange(CssIndex.java:158)
	at org.netbeans.modules.css.indexing.CssIndexer.fireChangeImpl(CssIndexer.java:207)
	at org.netbeans.modules.css.indexing.CssIndexer.access$000(CssIndexer.java:76)
	at org.netbeans.modules.css.indexing.CssIndexer$1.run(CssIndexer.java:193)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
SEVERE [org.openide.util.Exceptions]
Comment 9 Tomas Zezula 2012-11-20 16:12:00 UTC
Fixed jet-main 7b4d9757803a
Comment 10 augcampos 2012-11-20 17:52:38 UTC
Created attachment 128156 [details]
stacktrace
Comment 11 Exceptions Reporter 2012-11-20 17:52:46 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=194986
Comment 12 augcampos 2012-11-20 18:58:36 UTC
Created attachment 128162 [details]
stacktrace
Comment 13 augcampos 2012-11-20 19:22:36 UTC
Created attachment 128165 [details]
stacktrace
Comment 14 stefan79 2012-11-21 12:04:42 UTC
Created attachment 128200 [details]
stacktrace

Exception occured while editing in an php - File.
Comment 15 Quality Engineering 2012-11-21 13:47:32 UTC
Integrated into 'main-golden', will be available in build *201211211016* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7b4d9757803a
User: Tomas Zezula <tzezula@netbeans.org>
Log: #221953:NullPointerException at org.netbeans.modules.css.visual.DocumentViewModel.update