Bug 531706 - Oygen.2 com.sun.jdi.InternalException: Got error code in
reply:35 while debugging
Change-Id: I6c0281e77c39b56eb85764a190f3773f8a986f28
diff --git a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java
index 2bb06cb..01e85ab 100644
--- a/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java
+++ b/org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/model/JDIThread.java
@@ -2580,7 +2580,12 @@
methodExitRequest.addClassFilter(currentFrame.location().declaringType());
if (manager.virtualMachine().canUseInstanceFilters()) {
- ObjectReference thisObject = currentFrame.thisObject();
+ ObjectReference thisObject = null;
+ try {
+ thisObject = currentFrame.thisObject();
+ } catch (Exception e) {
+ // ignore errors here, continue without filtering
+ }
if (thisObject != null) {
methodExitRequest.addInstanceFilter(thisObject);
}