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 102048 - NPE dropping table in flow layout
Summary: NPE dropping table in flow layout
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords:
: 92469 (view as bug list)
Depends on:
Blocks: 101233
  Show dependency tree
 
Reported: 2007-04-21 04:02 UTC by _ krystyna
Modified: 2007-06-18 19:15 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 _ krystyna 2007-04-21 04:02:59 UTC
NB 070420
XP
JDK1.6

1. Java EE5 Visual Web Project set to flow layout
2. drag and drop a button, textfiled, then table 
>get NPE as below

3. while duplicating this in a another new project, tab switching to
  each page 1 also surfaced same exception dialog

java.lang.NullPointerException
	at
org.netbeans.modules.visualweb.designer.jsf.text.DomRangeImpl.ensureMarkIsFirst(DomRangeImpl.java:252)
	at
org.netbeans.modules.visualweb.designer.jsf.text.DomRangeImpl.<init>(DomRangeImpl.java:131)
	at
org.netbeans.modules.visualweb.designer.jsf.text.DomRangeImpl.create(DomRangeImpl.java:87)
	at
org.netbeans.modules.visualweb.designer.jsf.text.DomDocumentImpl.createRange(DomDocumentImpl.java:1497)
	at
org.netbeans.modules.visualweb.designer.jsf.DomProviderImpl.createDomRange(DomProviderImpl.java:1180)
	at
org.netbeans.modules.visualweb.designer.WebForm.createDomRange(WebForm.java:2273)
	at
org.netbeans.modules.visualweb.text.DesignerCaret.handleSetDot(DesignerCaret.java:943)
	at org.netbeans.modules.visualweb.text.DesignerCaret.setDot(DesignerCaret.java:835)
	at
org.netbeans.modules.visualweb.text.DesignerPaneBase.setCaretDot(DesignerPaneBase.java:1678)
	at
org.netbeans.modules.visualweb.designer.DesignerPane.showCaret(DesignerPane.java:460)
	at
org.netbeans.modules.visualweb.designer.DesignerPane.showCaretAtBeginning(DesignerPane.java:429)
	at org.netbeans.modules.visualweb.css2.PageBox.layout(PageBox.java:520)
	at org.netbeans.modules.visualweb.css2.PageBox.relayout(PageBox.java:578)
	at org.netbeans.modules.visualweb.css2.DocumentBox.redoLayout(DocumentBox.java:387)
	at org.netbeans.modules.visualweb.css2.PageBox.redoLayout(PageBox.java:591)
	at org.netbeans.modules.visualweb.css2.DocumentBox.changed(DocumentBox.java:802)
	at org.netbeans.modules.visualweb.designer.WebForm.changeNode(WebForm.java:1375)
	at
org.netbeans.modules.visualweb.designer.jsf.ui.JsfTopComponent.nodeChanged(JsfTopComponent.java:2186)
	at
org.netbeans.modules.visualweb.designer.jsf.ui.JsfMultiViewElement.nodeChanged(JsfMultiViewElement.java:140)
	at
org.netbeans.modules.visualweb.designer.jsf.JsfForm.notifyViewsNodeChanged(JsfForm.java:1094)
	at
org.netbeans.modules.visualweb.designer.jsf.JsfForm.nodeChanged(JsfForm.java:696)
	at
org.netbeans.modules.visualweb.designer.jsf.DomSynchronizer.processUpdates(DomSynchronizer.java:719)
[catch] at
org.netbeans.modules.visualweb.designer.jsf.DomSynchronizer.run(DomSynchronizer.java:659)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Peter Zavadsky 2007-04-23 21:57:45 UTC
I don't get this now. There were made some fixes in this area before.

Can you still reproduce it? In current build?
Comment 2 Peter Zavadsky 2007-04-23 21:59:47 UTC
I just got that, but not after dropping the table, but after the drop when I
clicked into outline.
Comment 3 _ krystyna 2007-04-23 22:09:53 UTC
No NPE on the table drop on 0423 build exactly, but tab switching from a
1.4 project to 1.5 project yielded the NPE today. 
Also, after the table drop in flow, I attempted to create another
project and the NPE got thrown.

Comment 4 _ krystyna 2007-04-23 22:26:29 UTC
0423 - getting same NPE on click-click but not exactly 100% reproducible.
Comment 5 Peter Zavadsky 2007-04-23 23:08:43 UTC
Fixed:
Checking in
visualweb/designer/jsf/src/org/netbeans/modules/visualweb/designer/jsf/text/DomRangeImpl.java;
/cvs/visualweb/designer/jsf/src/org/netbeans/modules/visualweb/designer/jsf/text/DomRangeImpl.java,v
 <--  DomRangeImpl.java
new revision: 1.6; previous revision: 1.5
done
Comment 6 _ krystyna 2007-05-17 22:32:02 UTC
Verified fixed with NB 070516.
Comment 7 Peter Zavadsky 2007-06-18 19:15:45 UTC
*** Issue 92469 has been marked as a duplicate of this issue. ***