changeset 12404:0df189772b9a

6618335: ThreadReference.stop(null) throws NPE instead of InvalidTypeException Reviewed-by: sla
author dbuck
date Wed, 23 Aug 2017 06:41:00 -0400
parents 0a54c59b882b
children e96c4a40fdf9
files src/share/classes/com/sun/tools/jdi/ThreadReferenceImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/jdi/ThreadReferenceImpl.java	Mon Jun 19 11:52:01 2017 +0200
+++ b/src/share/classes/com/sun/tools/jdi/ThreadReferenceImpl.java	Wed Aug 23 06:41:00 2017 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -238,7 +238,7 @@
     }
 
     public void stop(ObjectReference throwable) throws InvalidTypeException {
-        validateMirror(throwable);
+        validateMirrorOrNull(throwable);
         // Verify that the given object is a Throwable instance
         List<ReferenceType> list = vm.classesByName("java.lang.Throwable");
         ClassTypeImpl throwableClass = (ClassTypeImpl)list.get(0);