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 185305 - NullPointerException at org.netbeans.modules.csl.api.UiUtils.getFirstHandler
Summary: NullPointerException at org.netbeans.modules.csl.api.UiUtils.getFirstHandler
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: REGRESSION
Depends on: 184156
Blocks:
  Show dependency tree
 
Reported: 2010-04-30 09:32 UTC by Marian Mirilovic
Modified: 2010-05-13 11:55 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168909


Attachments
stacktrace (2.91 KB, text/plain)
2010-04-30 09:32 UTC, Marian Mirilovic
Details
stacktrace (2.79 KB, text/plain)
2010-04-30 10:42 UTC, Marian Mirilovic
Details
stacktrace (2.90 KB, text/plain)
2010-04-30 11:15 UTC, mkroll
Details
stacktrace (2.91 KB, text/plain)
2010-04-30 13:48 UTC, gholmer
Details
stacktrace (2.91 KB, text/plain)
2010-04-30 16:06 UTC, Filip Zamboj
Details
stacktrace (2.92 KB, text/plain)
2010-04-30 16:12 UTC, Filip Zamboj
Details
stacktrace (2.91 KB, text/plain)
2010-04-30 22:45 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2010-04-30 09:32:43 UTC
Build: NetBeans IDE Dev (Build 201004300200)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
mmirilovic: editing jsp file :
 <td ><a href=""><img alt="" onmouseover=?this.bgColor='#<HERE>EEEEEE'? onMouseout="this.bgColor='#FFFFFF'"

triedx to edit at <HERE>

GUEST: I have no idea- just try to type some code after creatednew line..

GUEST: deleting part of javadoc text




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.csl.api.UiUtils.getFirstHandler(UiUtils.java:223)
   at org.netbeans.modules.csl.api.UiUtils.access$100(UiUtils.java:94)
   at org.netbeans.modules.csl.api.UiUtils$2.run(UiUtils.java:144)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1392)
   at org.netbeans.modules.csl.api.UiUtils.getBracketCompletion(UiUtils.java:132)
   at org.netbeans.modules.web.core.syntax.JSPKit$JspDefaultKeyTypedAction.replaceSelection(JSPKit.java:487)
Comment 1 Marian Mirilovic 2010-04-30 09:32:50 UTC
Created attachment 98317 [details]
stacktrace
Comment 2 Marian Mirilovic 2010-04-30 09:48:30 UTC
Actually there is no way to change the code in ""at that place, NPE is rising again and again and no keystroke is written into code
Comment 3 Exceptions Reporter 2010-04-30 09:51:37 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=168909
Comment 4 Marian Mirilovic 2010-04-30 10:42:36 UTC
Created attachment 98322 [details]
stacktrace
Comment 5 Marian Mirilovic 2010-04-30 10:45:53 UTC
Just write '<%' into jsp file and try to add another character right after '%' -> exception rises ... sounds like recent and serious regression
Comment 6 mkroll 2010-04-30 11:15:36 UTC
Created attachment 98323 [details]
stacktrace

Open a Webproject (jsp)

Enter Text in the Editor
Comment 7 gholmer 2010-04-30 13:48:37 UTC
Created attachment 98330 [details]
stacktrace

I was entering some Facelets XHTML markup, the code was:
<ui:repeat value="#{s|}" with the cursor where the pipe character is.
Comment 8 Filip Zamboj 2010-04-30 16:06:37 UTC
Created attachment 98331 [details]
stacktrace

typing ' in javascript
Comment 9 Filip Zamboj 2010-04-30 16:12:37 UTC
Created attachment 98332 [details]
stacktrace

typing in javascript file
Comment 10 Filip Zamboj 2010-04-30 22:45:40 UTC
Created attachment 98339 [details]
stacktrace

added comment to javascript /** and enter
Comment 11 Jan Lahoda 2010-05-03 07:41:39 UTC
I will add a null check.
Comment 13 Quality Engineering 2010-05-04 04:32:45 UTC
Integrated into 'main-golden', will be available in build *201005040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 14 Marian Mirilovic 2010-05-13 09:30:16 UTC
verified in NetBeans IDE Dev (Build 201005122200)
Comment 15 Marian Mirilovic 2010-05-13 11:55:58 UTC
verified in NB 6.9 201005122200