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 11816 - NPE when calling method JavaDataObject.suspendSupports
Summary: NPE when calling method JavaDataObject.suspendSupports
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-27 17:24 UTC by brazil
Modified: 2007-09-26 09:14 UTC (History)
1 user (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 brazil 2001-04-27 17:24:47 UTC
This happens only for the case that I call JavaDataObject.suspendSupports before 
I call method DataObject.getCookie(SourceCookie.class). If I swap both calls 
then the NPE is not thrown.

This is the stacktrace:
java.lang.NullPointerException
        at
org.netbeans.modules.java.JavaDataObject.suspendSupports(JavaDataObject.java:549
)

        at
com.sun.forte4j.persistence.internal.generator.MappingSpace$CreateDataObject.run
(MappingSpace.java:494)

        at
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:69)

        at
org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:366)
        at
com.sun.forte4j.persistence.internal.generator.MappingSpace.writeClass(MappingSp
ace.java:439)

        at
com.sun.forte4j.persistence.internal.generator.MappingSpace.writeClasses(Mapping
Space.java:385)

        at
com.sun.forte4j.persistence.internal.generator.MappingSpace.save(MappingSpace.ja
va:188)

        at
com.sun.forte4j.persistence.internal.ui.modules.dbgen.wizard.GeneratorPort.save(
GeneratorPort.java:318)

        at
com.sun.forte4j.persistence.internal.ui.modules.dbgen.wizard.GenerateJavaWizard$
1.run(GenerateJavaWizard.java:187)

        at
com.sun.forte4j.persistence.internal.ui.modules.dbgen.wizard.ConsolePane$Worker.
run(ConsolePane.java:387)

        at java.lang.Thread.run(Thread.java:484)
Comment 1 Svata Dedic 2001-06-06 10:14:41 UTC
Fixed in dev trunk
Comment 2 Jan Becicka 2001-06-18 13:56:56 UTC
[010616] Verified
Comment 3 Quality Engineering 2003-07-01 13:16:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.