[Fix] Activity must be modifiable on Controller

This commit is contained in:
Robert von Burg 2023-07-20 15:08:32 +02:00
parent 36b8a8b664
commit 10f49817f2
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
2 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ public class Controller {
return false;
}
this.activity = activity;
this.activity = activity.ensureModifiable();
return true;
}

View File

@ -83,7 +83,7 @@ public class EventBasedExecutionHandler extends ExecutionHandler {
@Override
public Controller getController(Activity activity) {
return getController(getDefaultRealm(), activity);
return getController(getDefaultRealm(), activity.getLocator());
}
@Override
@ -117,7 +117,7 @@ public class EventBasedExecutionHandler extends ExecutionHandler {
}
protected Controller newController(String realm, Activity activity) {
return new Controller(realm, this, activity);
return new Controller(realm, this, activity.ensureModifiable());
}
@Override