mirror of https://github.com/apache/nifi.git
NIFI-3013 GetSNMP fix stop and start null pointer exception
This closes #1195.
This commit is contained in:
parent
0cc1765531
commit
1b5a28d130
|
@ -361,6 +361,8 @@ abstract class AbstractSNMPProcessor<T extends SNMPWorker> extends AbstractProce
|
||||||
}
|
}
|
||||||
if (this.snmpTarget == null) {
|
if (this.snmpTarget == null) {
|
||||||
this.snmpTarget = this.createSnmpTarget(context);
|
this.snmpTarget = this.createSnmpTarget(context);
|
||||||
|
}
|
||||||
|
if (this.targetResource == null) {
|
||||||
this.targetResource = this.finishBuildingTargetResource(context);
|
this.targetResource = this.finishBuildingTargetResource(context);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue