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 22360

Summary: NPE when setting required attribute with MofClass type
Product: java Reporter: Stepan Roh <rohs>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Stepan Roh 2002-04-12 11:17:24 UTC
When setting required (multiplicity 1:1) attribute
on object created with create() class method
without arguments, this NPE is thrown:

java.lang.NullPointerException
at
org.netbeans.mdr.storagemodel.StorableFeatured.setAttribute(StorableFeatured.java:116)
at
org.netbeans.mdr.handlers.FeaturedHandler._handleSet(FeaturedHandler.java:155
Comment 1 Daniel Prusa 2002-04-12 13:34:47 UTC
Fixed in main trunk.