Changeset 12697 in josm


Ignore:
Timestamp:
2017-08-30T11:46:11+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #15207 - NPE at PlatformHookOsx.invoke when opening preferences (regression from r12695)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r12695 r12697  
    2929public class PlatformHookOsx implements PlatformHook, InvocationHandler {
    3030
    31     private static final PlatformHookOsx INVOCATION_HANDLER = new PlatformHookOsx();
    32 
    3331    private String oSBuildNumber;
    3432
     
    5957            Class<?> preferencesHandler = findHandlerClass("PreferencesHandler");
    6058            Object proxy = Proxy.newProxyInstance(PlatformHookOsx.class.getClassLoader(), new Class<?>[] {
    61                 quitHandler, aboutHandler, openFilesHandler, preferencesHandler}, INVOCATION_HANDLER);
     59                quitHandler, aboutHandler, openFilesHandler, preferencesHandler}, this);
    6260            Object appli = eawtApplication.getConstructor((Class[]) null).newInstance((Object[]) null);
    6361            if (Utils.getJavaVersion() >= 9) {
Note: See TracChangeset for help on using the changeset viewer.