提交 069bb731 编写于 作者: P pchelko

8026262: NPE in SystemFlavorMap.getAllNativesForType - regression in jdk8 b110...

8026262: NPE in SystemFlavorMap.getAllNativesForType - regression in jdk8 b110 by fix of #JDK-8024987
Reviewed-by: art, serb
上级 f25fffb5
...@@ -1324,7 +1324,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable { ...@@ -1324,7 +1324,7 @@ public final class SystemFlavorMap implements FlavorMap, FlavorTable {
List<String> retval = null; List<String> retval = null;
for (DataFlavor dataFlavor : convertMimeTypeToDataFlavors(type)) { for (DataFlavor dataFlavor : convertMimeTypeToDataFlavors(type)) {
List<String> natives = getFlavorToNative().get(dataFlavor); List<String> natives = getFlavorToNative().get(dataFlavor);
if (!natives.isEmpty()) { if (natives != null && !natives.isEmpty()) {
if (retval == null) { if (retval == null) {
retval = new ArrayList<>(); retval = new ArrayList<>();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册