Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
import com.sun.jdi.StackFrame;
import com.sun.jdi.ThreadReference;
import com.sun.jdi.Type;
import com.sun.jdi.VMDisconnectedException;
import com.sun.jdi.VirtualMachine;
import com.sun.jdi.request.StepRequest;

Expand Down Expand Up @@ -402,9 +403,13 @@ private void filterNotLoadedTypes(List<IResource> resources, List<String> qualif
* @see com.sun.jdi.VirtualMachine
*/
private List<ReferenceType> getJdiClassesByName(String className) {
VirtualMachine vm = this.currentDebugSession.getVM();
if (vm != null) {
return vm.classesByName(className);
try {
VirtualMachine vm = this.currentDebugSession.getVM();
if (vm != null) {
return vm.classesByName(className);
}
} catch (VMDisconnectedException ex) {
// Ignore this exception since it will happen when the VM is still running.
}
return Collections.emptyList();
}
Expand Down