Skip to content

Commit 6259044

Browse files
authored
Merge pull request #359 from oracle/fix_npe_in_main_dispatchservicewatch
replace put with remove in Main.dispatchServiceWatch method
2 parents 2fc29b2 + dce1cef commit 6259044

File tree

1 file changed

+1
-1
lines changed
  • operator/src/main/java/oracle/kubernetes/operator

1 file changed

+1
-1
lines changed

operator/src/main/java/oracle/kubernetes/operator/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ private static void dispatchServiceWatch(Watch.Response<V1Service> item) {
891891
case "DELETED":
892892
if (sko != null) {
893893
if (channelName != null) {
894-
V1Service oldService = sko.getChannels().put(channelName, null);
894+
V1Service oldService = sko.getChannels().remove(channelName);
895895
if (oldService != null) {
896896
// Service was deleted, but sko still contained a non-null entry
897897
LOGGER.info(

0 commit comments

Comments
 (0)