diff --git a/src/main/java/org/fit/layout/tools/ParamsPanel.java b/src/main/java/org/fit/layout/tools/ParamsPanel.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/fit/layout/tools/ParamsPanel.java
+++ b/src/main/java/org/fit/layout/tools/ParamsPanel.java
@@ -197,11 +197,14 @@ public class ParamsPanel extends JPanel implements ChangeListener, DocumentListe
     
     public void reloadParams()
     {
-        boolean a = autosave;
-        autosave = false;
-        this.params = ServiceManager.getServiceParams(op);
-        setParams(this.params);
-        autosave = a;
+        if (op != null)
+        {
+            boolean a = autosave;
+            autosave = false;
+            this.params = ServiceManager.getServiceParams(op);
+            setParams(this.params);
+            autosave = a;
+        }
     }
     
     //======================================================================================
Fix param panel reloading when no operation is bound