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 257874 - NullPointerException at org.netbeans.modules.web.webkit.tooling.console.BrowserConsoleLogger.logMessage
Summary: NullPointerException at org.netbeans.modules.web.webkit.tooling.console.Brows...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-06 20:29 UTC by everflux
Modified: 2016-03-24 03:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209563


Attachments
stacktrace (1.10 KB, text/plain)
2016-02-06 20:29 UTC, everflux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2016-02-06 20:29:04 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
OS: Linux

User Comments:
GUEST: i really dont know how it happened. im just working on servlets and jsps etc.

terje7601: Just entered the following line in the "Browser Log" Output window:
document.getElementById("option-list-template")

GUEST: In debug I put some expression into Browser Log

GUEST: i was debugging JS (angularjs) and tried printing, to the log, using the console, a variable but nothing would print

everflux: typed name of undefined variable in web console

GUEST: Using Output console (Web)

GUEST: Cordova Application - Run on Android Device - Output - Browser Log
I tried the command: "localStorage.getItem('latitude');" and hit the enter key.

everflux: used console to evaluate getAttribut("class") expression




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.web.webkit.tooling.console.BrowserConsoleLogger.logMessage(BrowserConsoleLogger.java:248)
   at org.netbeans.modules.web.webkit.tooling.console.BrowserConsoleLogger.logMessage(BrowserConsoleLogger.java:233)
   at org.netbeans.modules.web.webkit.tooling.console.BrowserConsoleLogger.messageAdded(BrowserConsoleLogger.java:175)
   at org.netbeans.modules.web.webkit.debugging.api.console.Console.notifyConsoleMessage(Console.java:176)
   at org.netbeans.modules.web.webkit.debugging.api.console.Console.access$100(Console.java:61)
   at org.netbeans.modules.web.webkit.debugging.api.console.Console$InputCallback.line(Console.java:248)
Comment 1 everflux 2016-02-06 20:29:06 UTC
Created attachment 158398 [details]
stacktrace
Comment 2 Martin Entlicher 2016-03-23 08:39:15 UTC
Fixed by changeset:   296296:9beaf83832e9
http://hg.netbeans.org/core-main/rev/9beaf83832e9
Comment 3 Quality Engineering 2016-03-24 03:01:18 UTC
Integrated into 'main-silver', will be available in build *201603240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9beaf83832e9
User: mentlicher@netbeans.org
Log: #257874: "text" property can be missing in ConsoleMessage.