8187624: NPE in Type.UndetVar.debugString()
Reviewed-by: mcimadamore
This commit is contained in:
parent
352aa2d861
commit
8315ac39cc
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 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
|
||||
@ -1976,7 +1976,7 @@ public abstract class Type extends AnnoConstruct implements TypeMirror {
|
||||
}
|
||||
for (InferenceBound bound: InferenceBound.values()) {
|
||||
List<Type> aboundList = bounds.get(bound);
|
||||
if (aboundList.size() > 0) {
|
||||
if (aboundList != null && aboundList.size() > 0) {
|
||||
result += bound + " = " + aboundList + '\n';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user