jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java
changeset 21251 bf72e65e6f91
parent 20166 77e3750a0df9
child 21598 b0de5e2762ed
--- a/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java	Fri Oct 11 16:44:42 2013 +0400
+++ b/jdk/src/share/classes/java/awt/datatransfer/SystemFlavorMap.java	Fri Oct 11 17:57:50 2013 +0400
@@ -1324,7 +1324,7 @@
         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<>();
                 }