# HG changeset patch # User swamyv # Date 1214436839 25200 # Node ID 813b4d167747e125341ece3bea9c4c2d32799587 # Parent 36c29b2692f1e989bc8c64a95570efa911b0b60f 6614556: null location for MonitorContendedEnterEvent Reviewed-by: jjh diff -r 36c29b2692f1 -r 813b4d167747 jdk/src/share/classes/com/sun/tools/jdi/EventSetImpl.java --- a/jdk/src/share/classes/com/sun/tools/jdi/EventSetImpl.java Wed Jun 25 13:58:22 2008 -0700 +++ b/jdk/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(); } }