--- old/src/jdk.jdi/share/classes/com/sun/tools/jdi/MethodImpl.java 2016-10-18 09:10:51.556782397 -0700 +++ new/src/jdk.jdi/share/classes/com/sun/tools/jdi/MethodImpl.java 2016-10-18 09:10:51.344771785 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2016, 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 @@ -315,10 +315,11 @@ return; } Value nthArgValue = arguments.get(paramCount - 1); - if (nthArgValue == null) { + if (nthArgValue == null && argCount == paramCount) { + // The only one varargs parameter is null return; } - Type nthArgType = nthArgValue.type(); + Type nthArgType = (nthArgValue == null) ? null : nthArgValue.type(); if (nthArgType instanceof ArrayTypeImpl) { if (argCount == paramCount && ((ArrayTypeImpl)nthArgType).isAssignableTo(lastParamType)) {