Skip to content

Commit

Permalink
Fix a side-effect of ZK-5707 for B86-ZK-4275.zul test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Oct 8, 2024
1 parent aa99a6d commit f3fb280
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zk/src/main/java/org/zkoss/zk/ui/impl/UiEngineImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,11 @@ private Extension getExtension() {

private static final Event nextEvent(UiVisualizer uv) {
final Event evt = ((ExecutionCtrl) uv.getExecution()).getNextEvent();
return evt != null && !uv.isAborting() && !((SessionCtrl) Sessions.getCurrent()).isInvalidated() ? evt : null;
if (evt != null && !uv.isAborting() && (Sessions.getCurrent() == null
|| !((SessionCtrl) Sessions.getCurrent()).isInvalidated())) {
return evt;
}
return null;
}

/** Cycle 1:
Expand Down

0 comments on commit f3fb280

Please sign in to comment.