diff --git a/src/main/java/org/olat/ims/qti/editor/QTIEditorMainController.java b/src/main/java/org/olat/ims/qti/editor/QTIEditorMainController.java
index a7cc591538e78aa1a8a7fa4837288dd682397901..0ed8a41855be95efe9f457e3ea22d146060ae1de 100644
--- a/src/main/java/org/olat/ims/qti/editor/QTIEditorMainController.java
+++ b/src/main/java/org/olat/ims/qti/editor/QTIEditorMainController.java
@@ -484,7 +484,7 @@ public class QTIEditorMainController extends MainLayoutBasicController implement
 				}
 			}
 		} else if (source == exitVC) {
-			if (event.getCommand().equals(CMD_EXIT_SAVE)) {
+			if (CMD_EXIT_SAVE.equals(event.getCommand())) {
 				if (isRestrictedEdit() && history.size() > 0) {
 					// changes were recorded
 					// start work flow:
@@ -525,7 +525,7 @@ public class QTIEditorMainController extends MainLayoutBasicController implement
 					// remove lock, clean tmp dir, fire done event to close editor
 					saveAndExit(ureq);
 				}
-			} else if (event.getCommand().equals(CMD_EXIT_DISCARD)) {
+			} else if (CMD_EXIT_DISCARD.equals(event.getCommand())) {
 				// remove modal dialog and proceed with exit process
 				cmcExit.deactivate();
 				removeAsListenerAndDispose(cmcExit);
@@ -535,7 +535,7 @@ public class QTIEditorMainController extends MainLayoutBasicController implement
 				// remove lock
 				removeLocksAndExit(ureq);
 				
-			} else if (event.getCommand().equals(CMD_EXIT_CANCEL)) {
+			} else if (CMD_EXIT_CANCEL.equals(event.getCommand())) {
 				// remove modal dialog and go back to edit mode
 				cmcExit.deactivate();
 				removeAsListenerAndDispose(cmcExit);