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 237992 - IllegalArgumentException: Called DataObject.find on null
Summary: IllegalArgumentException: Called DataObject.find on null
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 239317 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-05 12:02 UTC by Vladimir Riha
Modified: 2014-01-17 10:53 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205038


Attachments
stacktrace (634 bytes, text/plain)
2013-11-05 12:02 UTC, Vladimir Riha
Details
stacktrace (634 bytes, text/plain)
2013-12-02 07:56 UTC, Vladimir Riha
Details
Patch (4.35 KB, patch)
2013-12-11 15:43 UTC, Ondrej Brejla
Details | Diff
stacktrace (558 bytes, text/plain)
2013-12-25 09:21 UTC, Alexander Simon
Details
stacktrace (634 bytes, text/plain)
2014-01-14 14:39 UTC, kosmonaffft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-11-05 12:02:39 UTC
Build: NetBeans IDE Dev (Build 201311050001)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
vriha: I tried to add custom HTML element to project's list of custom elements using hint in editor next to the element




Stacktrace: 
java.lang.IllegalArgumentException: Called DataObject.find on null
   at org.openide.loaders.DataObject.find(DataObject.java:551)
   at org.netbeans.modules.html.custom.conf.Configuration.store(Configuration.java:295)
   at org.netbeans.modules.html.custom.hints.AddElementFix.implement(AddElementFix.java:79)
   at org.netbeans.modules.csl.hints.infrastructure.FixWrapper.implement(FixWrapper.java:66)
   at org.netbeans.modules.editor.hints.HintsUI$1.run(HintsUI.java:837)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 1 Vladimir Riha 2013-11-05 12:02:40 UTC
Created attachment 141865 [details]
stacktrace
Comment 2 Vladimir Riha 2013-12-02 07:56:53 UTC
Created attachment 142773 [details]
stacktrace

Trying to add custom HTML element to projects custom element
Comment 3 Ondrej Brejla 2013-12-11 15:04:24 UTC
*** Bug 239317 has been marked as a duplicate of this bug. ***
Comment 4 Ondrej Brejla 2013-12-11 15:43:16 UTC
Created attachment 143069 [details]
Patch

Whole feature doesn't work...but this patch can enable it at least for some project types.
Comment 5 Exceptions Reporter 2013-12-24 10:00:24 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205038
Comment 6 Alexander Simon 2013-12-25 09:21:25 UTC
Created attachment 143439 [details]
stacktrace

click on hint in htm file
Comment 7 kosmonaffft 2014-01-14 14:39:46 UTC
Created attachment 143944 [details]
stacktrace

Add custom angular directive to project custom elements...
Comment 8 Ondrej Brejla 2014-01-15 10:24:08 UTC
Applied naive patch. Fixed in web-main #8acad59ca68d
Comment 9 Quality Engineering 2014-01-16 02:44:46 UTC
Integrated into 'main-silver', will be available in build *201401160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8acad59ca68d
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #237992 - IllegalArgumentException: Called DataObject.find on null
Comment 10 Vladimir Riha 2014-01-17 10:53:10 UTC
Thank you, it seems to help (tested in HTML5 project). I've tried adding custom element, attributes, elements' attributes to project's custom elements and it worked. 

Product Version: NetBeans IDE Dev (Build 201401170001)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)