Skip to content

Commit b62897e

Browse files
authored
Set source to null when unavailable in a StackTrace (#614)
1 parent 905c7ba commit b62897e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/StackTraceRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private Types.StackFrame convertDebuggerStackFrameToClient(StackFrameInfo jdiFra
220220
} else {
221221
// For other unavailable method, such as lambda expression's built-in methods run/accept/apply,
222222
// display "Unknown Source" in the Call Stack View.
223-
clientSource = new Types.Source("Unknown Source", "unknown", 0);
223+
clientSource = null;
224224
}
225225
// DAP specifies lineNumber to be set to 0 when unavailable
226226
clientLineNumber = 0;

0 commit comments

Comments
 (0)