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 103971 - java.lang.IllegalStateException from org.openide.loaders.DataObject.find
Summary: java.lang.IllegalStateException from org.openide.loaders.DataObject.find
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2007-05-15 11:03 UTC by Maksim Khramov
Modified: 2007-08-22 07:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception for this issue (5.74 KB, application/octet-stream)
2007-05-15 11:04 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2007-05-15 11:03:59 UTC
We are facing this exception (see attachment) reproducibly in our automated tests.
The test case creates new CSS table in Visual Web Project and than deleted the
same document repeatedly.
Comment 1 Maksim Khramov 2007-05-15 11:04:49 UTC
Created attachment 42405 [details]
Exception for this issue
Comment 2 Jaroslav Tulach 2007-08-21 13:57:09 UTC
Passing to projects, nobody should call DataObject.find on null:
org.netbeans.spi.project.ui.templates.support.Templates.setTargetFolder
Comment 3 Milos Kleint 2007-08-22 07:47:08 UTC
fixed the NPE.


However please note that the primary cause of the error is somewhere in your test setup. You are obviously doing
something different than the regular UI is doing. Thus this might not be the only error you encounter. Next time please
check the code yourself and make sure your setup is correct (equivalent to the way UI works) and file a bug only if you
can reproduce in the IDE itself as well.


Checking in Templates.java;
/cvs/projects/projectuiapi/src/org/netbeans/spi/project/ui/templates/support/Templates.java,v  <--  Templates.java
new revision: 1.18; previous revision: 1.17
done
IDE: