changeset 403:0ce6a3f3ee2f

6614556: null location for MonitorContendedEnterEvent Reviewed-by: jjh
author swamyv
date Wed, 25 Jun 2008 16:33:59 -0700
parents b212b96b3919
children 6bdb9094310f
files src/share/classes/com/sun/tools/jdi/EventSetImpl.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/jdi/EventSetImpl.java	Wed Jun 25 13:58:22 2008 -0700
+++ b/src/share/classes/com/sun/tools/jdi/EventSetImpl.java	Wed Jun 25 16:33:59 2008 -0700
@@ -208,8 +208,9 @@
         }
 
         public String toString() {
-            return eventName() + "@" + location().toString() +
-                                 " in thread " + thread().name();
+            return eventName() + "@" +
+                   ((location() == null) ? " null" : location().toString()) +
+                   " in thread " + thread().name();
         }
     }