Skip to content

Commit

Permalink
Fix NPE and save missing monitor configuration in webapp setting model (
Browse files Browse the repository at this point in the history
  • Loading branch information
Flanker32 authored Nov 9, 2020
1 parent 5b7704a commit 85fcb9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void createUIComponents() {

appServiceConfigPanelAdvanced.getSelectorPlatform().addActionListener(event -> {
final Platform platform = appServiceConfigPanelAdvanced.getSelectorPlatform().getValue();
appServiceMonitorPanel.setApplicationLogVisible(platform.getOs() == OperatingSystem.WINDOWS);
appServiceMonitorPanel.setApplicationLogVisible(platform != null && platform.getOs() == OperatingSystem.WINDOWS);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,13 @@ public void saveModel(final WebAppComboBoxModel webAppComboBoxModel) {
setWebContainer(settingModel.getWebContainer());
setCreatingResGrp(settingModel.isCreatingResGrp());
setCreatingAppServicePlan(settingModel.isCreatingAppServicePlan());
webAppSettingModel.setEnableApplicationLog(settingModel.isEnableApplicationLog());
webAppSettingModel.setApplicationLogLevel(settingModel.getApplicationLogLevel());
webAppSettingModel.setEnableWebServerLogging(settingModel.isEnableWebServerLogging());
webAppSettingModel.setWebServerLogQuota(settingModel.getWebServerLogQuota());
webAppSettingModel.setWebServerRetentionPeriod(settingModel.getWebServerRetentionPeriod());
webAppSettingModel.setEnableDetailedErrorMessage(settingModel.isEnableDetailedErrorMessage());
webAppSettingModel.setEnableFailedRequestTracing(settingModel.isEnableFailedRequestTracing());
} else {
setCreatingNew(false);
final WebApp webApp = webAppComboBoxModel.getResource();
Expand Down

0 comments on commit 85fcb9f

Please sign in to comment.