Hello.
Please review a fix for jdk 9.
The NPE occurs, because we call getDefaultFlavorMap() on the Toolkit thread (formatArrayAsDataFlavorSet->getDefaultFlavorTable->SystemFlavorMap.getDefaultFlavorMap()). But after the fix of JDK-8030679 a DefaultFlavorMap is stored per AppContext, so we cannot use it on the TK thread. As a fix I suggest to store raw formats instead of Set<DataFlavor>.

Bug: https://bugs.openjdk.java.net/browse/JDK-8043393
Webrev can be found at: http://cr.openjdk.java.net/~serb/8043393/webrev.00

--
Best regards, Sergey.

Reply via email to