8026262: NPE in SystemFlavorMap.getAllNativesForType - regression in jdk8 b110 by fix of #JDK-8024987
Reviewed-by: art, serb
This commit is contained in:
parent
891396b2e8
commit
c002447a5e
@ -1324,7 +1324,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable {
|
||||
List<String> retval = null;
|
||||
for (DataFlavor dataFlavor : convertMimeTypeToDataFlavors(type)) {
|
||||
List<String> natives = getFlavorToNative().get(dataFlavor);
|
||||
if (!natives.isEmpty()) {
|
||||
if (natives != null && !natives.isEmpty()) {
|
||||
if (retval == null) {
|
||||
retval = new ArrayList<>();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user