Skip to content

Commit

Permalink
Fixed NPE in ConnectorsUtil
Browse files Browse the repository at this point in the history
Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
  • Loading branch information
dmatej committed Mar 6, 2023
1 parent 5e2fbf8 commit 2444c0c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2022 Contributors to the Eclipse Foundation.
* Copyright (c) 2022, 2023 Contributors to the Eclipse Foundation.
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -426,7 +426,7 @@ public static boolean isDynamicReconfigurationEnabled(ResourcePool pool) {
if (pool instanceof PropertyBag) {
PropertyBag properties = (PropertyBag) pool;
Property property = properties.getProperty(ConnectorConstants.DYNAMIC_RECONFIGURATION_FLAG);
if (property != null) {
if (property != null && property.getValue() != null) {
try {
if (Long.parseLong(property.getValue()) > 0) {
enabled = true;
Expand Down

0 comments on commit 2444c0c

Please sign in to comment.