8026262: NPE in SystemFlavorMap.getAllNativesForType - regression in jdk8 b110 by fix of #JDK-8024987

Reviewed-by: art, serb
This commit is contained in:
Petr Pchelko 2013-10-11 17:57:50 +04:00
parent 891396b2e8
commit c002447a5e

View File

@ -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<>();
}