Merge pull request #88 from unlimmitted/master
Fix NullPointerException
This commit is contained in:
commit
ed0468dbf9
|
|
@ -255,6 +255,7 @@ public final class ApiConnectionImpl extends ApiConnection {
|
|||
} catch (MikrotikApiException ex) {
|
||||
continue;
|
||||
}
|
||||
if (res.getTag() != null) {
|
||||
ResultListener l = listeners.get(res.getTag());
|
||||
if (l != null) {
|
||||
if (res instanceof Result) {
|
||||
|
|
@ -270,6 +271,9 @@ public final class ApiConnectionImpl extends ApiConnection {
|
|||
l.error(new ApiCommandException((Error) res));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
nextTag();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue