diff --git a/src/com/romraider/logger/ecu/EcuLogger.java b/src/com/romraider/logger/ecu/EcuLogger.java index 9b42b27c8..bd8270e5a 100644 --- a/src/com/romraider/logger/ecu/EcuLogger.java +++ b/src/com/romraider/logger/ecu/EcuLogger.java @@ -1392,8 +1392,11 @@ private void saveSettings() { settings.setLoggerWindowLocation(getLocation()); if (settings.getLoggerParameterListState()) { final Component c = tabbedPane.getSelectedComponent(); - final JSplitPane sp = (JSplitPane) c.getComponentAt(100, 100); - settings.setLoggerDividerLocation(sp.getDividerLocation()); + if (c instanceof JSplitPane) { + // Only save the divider location if there is one + final JSplitPane sp = (JSplitPane) c.getComponentAt(100, 100); + settings.setLoggerDividerLocation(sp.getDividerLocation()); + } } settings.setLoggerSelectedTabIndex(tabbedPane.getSelectedIndex()); settings.setLoggerPluginPorts(getPluginPorts(externalDataSources));