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 251805 - NullPointerException at org.netbeans.modules.php.dbgp.URIMapper$BaseMapper.toWebServerURI
Summary: NullPointerException at org.netbeans.modules.php.dbgp.URIMapper$BaseMapper.to...
Status: RESOLVED DUPLICATE of bug 251806
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-13 19:40 UTC by SnoopDE
Modified: 2015-09-04 10:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 175642


Attachments
stacktrace (1.52 KB, text/plain)
2015-04-13 19:40 UTC, SnoopDE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SnoopDE 2015-04-13 19:40:29 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Linux

User Comments:
GUEST: I set a breakpoint and then started the debugger (xdebug). The browser pops up, but never connects and netbeans gives me this error.

GUEST: debugging php script with xdebug

SnoopDE: while running debug with xdebug




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.php.dbgp.URIMapper$BaseMapper.toWebServerURI(URIMapper.java:301)
   at org.netbeans.modules.php.dbgp.URIMapper$MultiMapper.toWebServerURI(URIMapper.java:349)
   at org.netbeans.modules.php.dbgp.URIMapper.toWebServerURI(URIMapper.java:77)
   at org.netbeans.modules.php.dbgp.SessionId.toWebServerURI(SessionId.java:131)
   at org.netbeans.modules.php.dbgp.packets.BrkpntCommandBuilder.buildLineBreakpoint(BrkpntCommandBuilder.java:63)
   at org.netbeans.modules.php.dbgp.packets.BrkpntCommandBuilder.buildLineBreakpoint(BrkpntCommandBuilder.java:76)
Comment 1 SnoopDE 2015-04-13 19:40:30 UTC
Created attachment 153173 [details]
stacktrace
Comment 2 SnoopDE 2015-04-16 21:31:57 UTC
found reason:

this issue throws while directory mapping is wrong

Project Settings»RunConfig»Advanced»Path Mapping.
After adjust map dirs correctly||delete wrong entries and restart nb the error was gone.
Comment 3 Tomas Mysik 2015-09-04 10:38:48 UTC
I see now, thanks. Should be fixed now, see issue #251806.

Thanks for reporting.

*** This bug has been marked as a duplicate of bug 251806 ***