Skip to content

Commit d627e95

Browse files
csviriSoroosh Sarabadani
andauthored
Update operator-framework/src/main/java/io/javaoperatorsdk/operator/processing/event/internal/CustomResourceEventSource.java
Co-authored-by: Soroosh Sarabadani <[email protected]>
1 parent dd572ca commit d627e95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

operator-framework/src/main/java/io/javaoperatorsdk/operator/processing/event/internal/CustomResourceEventSource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public void eventReceived(Watcher.Action action, CustomResource customResource)
7979

8080
@Override
8181
public void onClose(KubernetesClientException e) {
82+
if (e == null) {
83+
return;
84+
}
8285
if (e.getCode() == HTTP_GONE) {
8386
log.warn("Received error for watch, will try to reconnect.", e);
8487
registerWatch();

0 commit comments

Comments
 (0)