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 84027 - Another NPE on deleting a schema to which a design pattern is being applied
Summary: Another NPE on deleting a schema to which a design pattern is being applied
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-01 13:34 UTC by Andrei Chistiakov
Modified: 2006-09-07 09:42 UTC (History)
4 users (show)

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 Andrei Chistiakov 2006-09-01 13:34:52 UTC
Reproduced in build 060831_2 (JDK 1.6 Beta 2)

To reproduce the bug:

- open flattened OTA schema;
- apply Russian Doll design pattern to the schema;
- while applying of the pattern is in progress, delete the schema from the project.

java.lang.NullPointerException
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator$Handler.setupLinePositions(XsdBasedValidator.java:240)
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator$Handler.getPosition(XsdBasedValidator.java:260)
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator$Handler.logValidationErrors(XsdBasedValidator.java:337)
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator$Handler.logValidationErrors(XsdBasedValidator.java:357)
	at
org.netbeans.modules.xml.schema.model.validation.SchemaXsdBasedValidator.validate(SchemaXsdBasedValidator.java:91)
	at
org.netbeans.modules.xml.xam.spi.XsdBasedValidator.validate(XsdBasedValidator.java:96)
	at org.netbeans.modules.xml.xam.spi.Validation.validate(Validation.java:78)
	at org.netbeans.modules.xml.axi.impl.AXIModelImpl.validate(AXIModelImpl.java:216)
	at org.netbeans.modules.xml.axi.impl.ModelAccessImpl.sync(ModelAccessImpl.java:75)
	at org.netbeans.modules.xml.xam.AbstractModel.sync(AbstractModel.java:226)
...
Comment 1 Samaresh Panda 2006-09-05 23:23:36 UTC
As per my discussion with chris, we're going to make the progress dialog modal.
Comment 2 Samaresh Panda 2006-09-06 18:28:41 UTC
With Ayub's last integration (SchemaTransformProgressPanel.java: 1.1.2.4) the
progress dialog is now modal, which prevents user from any other activity on the UI.
Comment 3 Andrei Chistiakov 2006-09-07 09:42:15 UTC
Verified in build 060906_1.