OSDN Git Service

libjava/ChangeLog:
[pf3gnuchains/gcc-fork.git] / libjava / classpath / gnu / classpath / jdwp / processor / ThreadGroupReferenceCommandSet.java
index 8a11195..103199a 100644 (file)
@@ -85,7 +85,8 @@ public class ThreadGroupReferenceCommandSet
         // So if we throw an IOException we're in serious trouble
         throw new JdwpInternalErrorException(ex);
       }
-    return true;
+
+    return false;
   }
 
   private void executeName(ByteBuffer bb, DataOutputStream os)
@@ -102,8 +103,12 @@ public class ThreadGroupReferenceCommandSet
     ObjectId oid = idMan.readObjectId(bb);
     ThreadGroup group = (ThreadGroup) oid.getObject();
     ThreadGroup parent = group.getParent();
-    ObjectId parentId = idMan.getObjectId(parent);
-    parentId.write(os);
+    if (parent == null) {
+       os.writeLong(0L);
+    } else {
+       ObjectId parentId = idMan.getObjectId(parent);
+       parentId.write(os);     
+    }
   }
 
   private void executeChildren(ByteBuffer bb, DataOutputStream os)