Skip to content

Commit

Permalink
修复测试用例失败
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchenxu committed Sep 20, 2019
1 parent b633b2b commit 49407b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,8 @@ public IBuildingForWatching onWatching() {

@Override
public EventWatcher onWatch(final AdviceListener adviceListener, Event.Type... eventTypeArray) {
if (eventTypeArray == null) {
if (eventTypeArray == null
|| eventTypeArray.length == 0) {
return build(new AdviceAdapterListener(adviceListener), null, BEFORE, RETURN, THROWS, IMMEDIATELY_RETURN, IMMEDIATELY_THROWS);
}
return build(new AdviceAdapterListener(adviceListener), null, eventTypeArray);
Expand Down

0 comments on commit 49407b7

Please sign in to comment.