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 222317 - NullPointerException at org.netbeans.modules.css.visual.DocumentViewModel.update
Summary: NullPointerException at org.netbeans.modules.css.visual.DocumentViewModel.update
Status: RESOLVED DUPLICATE of bug 221191
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-17 17:53 UTC by Exceptions Reporter
Modified: 2012-11-23 15:11 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 195307


Attachments
stacktrace (2.77 KB, text/plain)
2012-11-17 17:53 UTC, Exceptions Reporter
Details
stacktrace (2.77 KB, text/plain)
2012-11-20 16:52 UTC, Antonin Nebuzelsky
Details
stacktrace (2.77 KB, text/plain)
2012-11-20 17:04 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-11-17 17:53:08 UTC
This bug was originally marked as duplicate of bug 221191, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.3 Beta 2 (Build nbms-and-javadoc-9627-on-20121117)
VM: Java HotSpot(TM) Client VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 7

User Comments:
MrRemedy: Attemed to open a simple  HTML file that has JSON declaration in it.

stezeb: Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211042000)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Opened following html file via "File | Open File...":

<html>
<head>
<title>SwingInterop</title>
</head>
<body>
<h1>Sample: SwingInterop</h1>
<applet id="interop" code="dummy" width="100%" height="100%">
  <param name="jnlp_href" value="SwingInterop_browser.jnlp" />
</applet>
</body>

GUEST: Opening an html file

GUEST: sdgsfgasgasdg

GUEST: i was opening a html file via Open with  on my Win8

GUEST: Added the body tag to a html file and wanted Netbeans to close the body tag

melight: Switched between files sing files tabs

ptitpix: This error occur everytime I open a css file.

GUEST: just started the netbeans program.

stefan79: Drag&Dropped an empty css-File to Netbeans (from explorer).

Pienaartjie: Im trying to open an HTML page

GUEST: Opened IDE -> File -> Open file

GUEST: updated to beta2. Updated about 200+ plugins and this message shows up on launch.

Machine:

2012 - Retina Macbook Pro
OS: OS X Mountain Lion (10.8)

***By the way, the rendered text is incredibly blurry. A fix for this would be nice!

GUEST: Loading file, after opening error occured.

GUEST: I was copyng triyng to open a html document dragging from a folder .

luchop00: drag and drop file from outside project (from desktop) to IDE window

GUEST: Just opened HTML file with CSS and JavaScript in <header> sectionin editor

GUEST: Create new html document in favorites view

GUEST: I dragged a CSS file from Windows Explorer into the Netbeans IDE.

GUEST: This problem happened when I dragged a file in NetBeans

melight: I dragged a file from a windows folder to netbeans screen

GUEST: I switched tabs from one CSS file to another.  Both files were already opened in the IDE and both files threw error messages upon opening.  The errors that occurred upon opening were also reported and they haven't had any impact on my ability to edit and save them.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.css.visual.DocumentViewModel.update(DocumentViewModel.java:151)
   at org.netbeans.modules.css.visual.DocumentViewModel.<init>(DocumentViewModel.java:106)
   at org.netbeans.modules.css.visual.DocumentViewPanel$4.run(DocumentViewPanel.java:232)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 1 Exceptions Reporter 2012-11-17 17:53:18 UTC
Created attachment 127978 [details]
stacktrace
Comment 2 Marian Mirilovic 2012-11-18 19:19:47 UTC

*** This bug has been marked as a duplicate of bug 221191 ***
Comment 3 Antonin Nebuzelsky 2012-11-20 16:52:38 UTC
Created attachment 128153 [details]
stacktrace

Opened an HTML file in editor.
Comment 4 Antonin Nebuzelsky 2012-11-20 17:04:36 UTC
Created attachment 128155 [details]
stacktrace

Drag and drop an editor tab with html file open to a different position amongst editor tabs.
Comment 5 Exceptions Reporter 2012-11-22 09:40:39 UTC
This bug already has 100 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=195307