Skip to content

Commit

Permalink
Fix possible NPE in netty client
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <jan.supol@oracle.com>
  • Loading branch information
jansupol committed Jun 6, 2023
1 parent 5316536 commit 4bdb30d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2022 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2023 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -188,6 +188,9 @@ public int read() throws IOException {

if (content.isReadable()) {
content.retain();
if (nis == null) {
nis = new NettyInputStream();
}
nis.publish(content);
}

Expand Down

0 comments on commit 4bdb30d

Please # to comment.