/**
* Loads preferences stored in a {@link Configuration} into a {@link
* Preferences} object.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class PreferencesLoader {
}
private void loadPostCutOffLength(Configuration configuration) {
- preferences.setPostCutOffLength(
- configuration.getIntValue("Option/PostCutOffLength")
- .getValue(null));
+ try {
+ preferences.setPostCutOffLength(
+ configuration.getIntValue("Option/PostCutOffLength")
+ .getValue(null));
+ } catch (IllegalArgumentException iae1) {
+ /* previous versions allowed -1, ignore and use default. */
+ }
}
private void loadRequireFullAccess(Configuration configuration) {