GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix NPE when searching the source for the exception stack trace (#310) · mfussenegger/java-debug@6208426

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter
    • AdapterUtils.java
    • handler
      • LaunchWithoutDebuggingDelegate.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/AdapterUtils.java‎

Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/AdapterUtils.java
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,12 @@ public static boolean isWindows() {
6868
* @return the absolute file path
6969
*/
7070
public static String sourceLookup(String[] sourcePaths, String sourceName) {
71-
for (String path : sourcePaths) {
72-
Path fullpath = Paths.get(path, sourceName);
73-
if (Files.isRegularFile(fullpath)) {
74-
return fullpath.toString();
71+
if (sourcePaths != null) {
72+
for (String path : sourcePaths) {
73+
Path fullpath = Paths.get(path, sourceName);
74+
if (Files.isRegularFile(fullpath)) {
75+
return fullpath.toString();
76+
}
7577
}
7678
}
7779
return null;
Collapse file

‎com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/LaunchWithoutDebuggingDelegate.java‎

Copy file name to clipboardExpand all lines: com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/LaunchWithoutDebuggingDelegate.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ public CompletableFuture<Response> launchInTerminal(LaunchArguments launchArgume
137137

138138
@Override
139139
public void preLaunch(LaunchArguments launchArguments, IDebugAdapterContext context) {
140-
// TODO Auto-generated method stub
140+
context.setSourcePaths(launchArguments.sourcePaths);
141141
}
142142
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.