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 130403 - Exception when adding new line to SVG XML file
Summary: Exception when adding new line to SVG XML file
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on: 138424
Blocks:
  Show dependency tree
 
Reported: 2008-03-18 14:01 UTC by kate
Modified: 2008-08-13 23:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (231.35 KB, image/jpeg)
2008-03-18 14:04 UTC, kate
Details
stacktrace (complete) (3.67 KB, text/plain)
2008-03-18 14:05 UTC, kate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kate 2008-03-18 14:01:55 UTC
Product Version: NetBeans IDE Dev (Build 200803171203)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.24-12-generic running on i386; UTF-8; en_US (nb)

1. New Project- Mobility - MIDP Application
2. Extract svg files from http://wiki.netbeans.info/wiki/attach/MobilitySVGDemo/svg.zip to the <project_name>/src directory.
3. Open a svg file (menu.svg for example) in Project Window. It is displayed in editor. Switch to "Source" view of the
file to display its XML structure.
4. Find the last closing tag (</svg>), place cursor to the previous line and add a new line there.
5. Null Exception thrown.

Screenshot included.

Stracktrace (part)
-------------------

java.lang.NullPointerException
	at org.openide.xml.EntityCatalog$Forwarder.resolveEntity(EntityCatalog.java:117)
	at org.netbeans.modules.xml.catalog.impl.SystemCatalogReader.getSystemID(SystemCatalogReader.java:144)
	at org.netbeans.modules.xml.catalog.CatalogEntityResolver.resolveEntity(CatalogEntityResolver.java:111)
	at org.netbeans.modules.xml.dtd.grammar.DTDParser$EntityResolverWrapper.resolveEntity(DTDParser.java:274)
Comment 1 kate 2008-03-18 14:04:40 UTC
Created attachment 58580 [details]
screenshot
Comment 2 kate 2008-03-18 14:05:53 UTC
Created attachment 58581 [details]
stacktrace (complete)
Comment 3 Samaresh Panda 2008-07-14 23:29:57 UTC
Updating dependency info. While trying to reproduce this, I filed issue 138424, which got marked as duplicate of issue
137944.
Comment 4 Samaresh Panda 2008-08-13 23:17:05 UTC
While evaluating this, I found an AIOOB that I fixed: http://hg.netbeans.org/main?cmd=changeset;node=b8e45508733b.
However I was not able to get to the NPE.