Skip to content
Snippets Groups Projects
Commit 27d471c2 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

NullPointerException avoided

parent af52784d
Branches
Tags
No related merge requests found
......@@ -225,7 +225,7 @@ public class Capoeira extends Application {
@Override
protected void loadPreferences() {
super.loadPreferences();
if (prefs != null) {
if ((prefs != null) && (model != null)) {
final int x = prefs.getInt("x", DEFAULT_WINDOW_X);
final int y = prefs.getInt("y", DEFAULT_WINDOW_Y);
setLocation(x, y);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment