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 115524 - java.lang.NullPointerException
Summary: java.lang.NullPointerException
Status: REOPENED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ deva
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-14 10:24 UTC by dante
Modified: 2010-03-15 10:30 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 3888


Attachments
stacktrace (1.99 KB, text/plain)
2007-09-14 10:24 UTC, dante
Details
stacktrace (1.68 KB, text/plain)
2007-10-03 17:26 UTC, jiai
Details
Proposed patch (920 bytes, text/plain)
2008-10-14 19:11 UTC, Peter Zavadsky
Details
stacktrace (2.08 KB, text/plain)
2008-10-31 15:18 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dante 2007-09-14 10:24:34 UTC
Build: NetBeans IDE Dev (Build 200709060000)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows XP, 5.1, x86

User Comments: 
Open Java Component
Comment 1 dante 2007-09-14 10:24:42 UTC
Created attachment 48814 [details]
stacktrace
Comment 2 jiai 2007-10-03 17:26:30 UTC
Build: NetBeans IDE Dev (Build 200710030000)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows 2000, 5.0, x86

User Comments: 
Compiling a package with backing beans; ~20 classes. Some  marker icons shows errors where definitely ar no errors.
Comment 3 jiai 2007-10-03 17:26:38 UTC
Created attachment 50123 [details]
stacktrace
Comment 4 _ deva 2007-10-24 00:12:26 UTC
Please provide the steps to reproduce, I am not able to follow the instructions at 
http://statistics.netbeans.org/exceptions/detail.do?id=3888
Comment 5 dante 2007-10-24 09:56:37 UTC
This one appears when various actions are occurring and thus no specific reproducible steps as such I can not reproduce
it on demand.Hopefully the more automatic logging you receive will allow you to identify exactly what the issue is.
Comment 6 _ sandipchitale 2007-10-30 14:57:57 UTC
Can you please follow it up with the user one more time.
Comment 7 _ deva 2007-10-31 18:55:27 UTC
Automatic logging doesn't help in situation like this. Please provide us exact steps to reproduce and re-open if you 
still see it.
Comment 8 Exceptions Reporter 2008-10-14 16:15:37 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200810100201)
http://statistics.netbeans.org/exceptions/detail.do?id=127848
Comment 9 Peter Zavadsky 2008-10-14 19:07:20 UTC
In this case, the sourceDocument is still (already?) null. Therefore the base URL can't be retrieved. The code should
count with such possibility. I am gonna provide a patch.
Comment 10 Peter Zavadsky 2008-10-14 19:11:28 UTC
Created attachment 71795 [details]
Proposed patch
Comment 11 Maksim Khramov 2008-10-31 15:18:44 UTC
Build: NetBeans IDE 6.1 (Build 200805300101)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.visualweb.insync.markup.MarkupUnit.getBase(MarkupUnit.java:828)
        at org.netbeans.modules.visualweb.insync.markup.MarkupUnit.initRenderedDocument(MarkupUnit.java:736)
        at org.netbeans.modules.visualweb.insync.markup.MarkupUnit.getRenderedDom(MarkupUnit.java:725)
        at org.netbeans.modules.visualweb.insync.models.FacesModel.getHtmlDom(FacesModel.java:1594)
        at org.netbeans.modules.visualweb.insync.models.FacesModel.refresh(FacesModel.java:1811)
        at org.netbeans.modules.visualweb.insync.models.FacesModel.refreshAndSyncNonPageBeans(FacesModel.java:1775)
Comment 12 Maksim Khramov 2008-10-31 15:18:56 UTC
Created attachment 72996 [details]
stacktrace