aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/snmp/src
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/snmp/src')
-rw-r--r--profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java
index cf2d91d0..6bdc9a03 100644
--- a/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java
+++ b/profiles/snmp/src/main/java/org/onap/cli/fw/snmp/cmd/OnapSnmpCommand.java
@@ -120,7 +120,7 @@ public class OnapSnmpCommand extends OnapCommand {
case OnapCommandSnmpConstants.SNMP_CMD_GET:
ResponseEvent responseEvent = snmp.send(getPDU(PDU.GET, oidStrArr), getTarget(), null);
- if ( responseEvent != null || responseEvent.getResponse().getErrorStatus() == PDU.noError) {
+ if ( responseEvent != null && responseEvent.getResponse().getErrorStatus() == PDU.noError) {
Vector<? extends VariableBinding> variableBindings = responseEvent.getResponse().getVariableBindings();
variableBindings.stream().forEach(varBinding -> { //NOSONAR
String key = getKeyForValue(varBinding.getOid().toString());