<AWT Dev> [8] Review Request: JDK-8026262 NPE in SystemFlavorMap.getAllNativesForType - regression in jdk8 b110 by fix of #JDK-8024987

Artem Ananiev artem.ananiev at oracle.com
Fri Oct 11 03:42:23 PDT 2013


Looks fine.

Thanks,

Artem

On 10/11/2013 12:59 PM, Petr Pchelko wrote:
> Hello, AWT Team.
>
> Please review the fix for the issue:
> https://bugs.openjdk.java.net/browse/JDK-8026262
> The fix is available at:
> http://cr.openjdk.java.net/~pchelko/8026262/webrev.00/
>
> The cause is a forgotten null check in the JDK-8024987 fix. When we try to find all known natives for a type the flavour-to-native cache could not contain some data flavours yet,
> so we are getting a null as a list of corresponding mime-types. It's a valid situation, so a simple null check fixes the problem. The cache will be updated later when the getNativesForFlavour
> method will finish.
>
> The fix was tested with the case described in a netbeans bug: without the fix I fail to DnD a file from Krusader file manager, with a fix I can drag it successfully.
>
> With best regards. Petr.
>


More information about the awt-dev mailing list