[Fix] Activity must be modifiable on Controller
This commit is contained in:
parent
36b8a8b664
commit
10f49817f2
|
@ -128,7 +128,7 @@ public class Controller {
|
|||
return false;
|
||||
}
|
||||
|
||||
this.activity = activity;
|
||||
this.activity = activity.ensureModifiable();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue