This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 208528
Collapse All | Expand All

(-)a/java.api.common/src/org/netbeans/modules/java/api/common/ui/PlatformUiSupport.java (-5 / +6 lines)
Lines 124-136 Link Here
124
        Parameters.notNull("projectConfigurationNamespace", projectConfigurationNamespace); //NOI18N
124
        Parameters.notNull("projectConfigurationNamespace", projectConfigurationNamespace); //NOI18N
125
        Parameters.notNull("sourceLevel", sourceLevel); //NOI18N
125
        Parameters.notNull("sourceLevel", sourceLevel); //NOI18N
126
126
127
        PlatformKey platformKey;
127
        JavaPlatform platform = null;
128
        if (platformName != null) {
128
        if (platformName != null) {
129
            platformKey = new PlatformKey(PlatformUiSupport.findPlatform(platformName));
129
            platform = PlatformUiSupport.findPlatform(platformName);
130
        } else {
131
            platformKey = new PlatformKey(JavaPlatformManager.getDefault().getDefaultPlatform());
132
        }
130
        }
133
        storePlatform(props, helper, projectConfigurationNamespace, platformKey, new SourceLevelKey(sourceLevel));
131
        if (platform == null) {
132
            platform = JavaPlatformManager.getDefault().getDefaultPlatform();
133
        }
134
        storePlatform(props, helper, projectConfigurationNamespace, new PlatformKey(platform), new SourceLevelKey(sourceLevel));
134
    }
135
    }
135
    
136
    
136
    
137
    

Return to bug 208528