Skip to content

Commit 3a293a9

Browse files
authored
Fix NPE restoring socket properties from AS400ConnectionPool reference (#265)
Signed-off-by: Nicola Isotta <[email protected]>
1 parent 75c2185 commit 3a293a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/ibm/as400/access/AS400ConnectionPool.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ public AS400ConnectionPool()
174174
break;
175175
default:
176176
if (SocketProperties.isSocketProperty(property)) {
177+
if (socketProperties_ == null) {
178+
socketProperties_ = new SocketProperties();
179+
}
177180
socketProperties_.restore(property, value);
178181
}
179182
break;

0 commit comments

Comments
 (0)