NIFI-3013 GetSNMP fix stop and start null pointer exception

This closes #1195.
This commit is contained in:
João Henrique Ferreira de Freitas 2016-11-04 09:31:43 -02:00 committed by Pierre Villard
parent 0cc1765531
commit 1b5a28d130
1 changed files with 2 additions and 0 deletions

View File

@ -361,6 +361,8 @@ abstract class AbstractSNMPProcessor<T extends SNMPWorker> extends AbstractProce
}
if (this.snmpTarget == null) {
this.snmpTarget = this.createSnmpTarget(context);
}
if (this.targetResource == null) {
this.targetResource = this.finishBuildingTargetResource(context);
}
}