eppleton commented on code in PR #9433:
URL: https://github.com/apache/netbeans/pull/9433#discussion_r4119351204
##########
java/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/SourcePath.java:
##########
@@ -306,12 +301,12 @@ public String getURL (
if (url == null) {
String sourcePath;
try {
- sourcePath = convertSlash (csf.getSourcePath (stratumn));
- url = getURL(sourcePath, true);
+ sourcePath = toPath (csf.getSourcePath (stratumn));
+ url = findURLForStackFrame(csf, stratumn);
if (url == null) {
String ds = csf.getDefaultStratum();
- sourcePath = convertSlash (csf.getSourcePath (ds));
- url = getURL(sourcePath, true);
+ sourcePath = toPath (csf.getSourcePath (ds));
+ url = findURLForStackFrame(csf, stratumn);
Review Comment:
Line 308 sets up the fallback for the default stratum ds, but line 309
searches the requested stratumn again, the same lookup as line 305. So when the
requested stratum has no source, the default stratum is never tried and getURL
returns null. Should probably be findURLForStackFrame(csf, ds);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists