Fix NPE when there's no pump.
This commit is contained in:
parent
6e5f848c6b
commit
e5a68608a0
1 changed files with 3 additions and 0 deletions
|
@ -189,6 +189,9 @@ public class RuffyScripter implements RuffyCommands {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void disconnect() {
|
public synchronized void disconnect() {
|
||||||
|
if (ruffyService == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
ruffyService.doRTDisconnect();
|
ruffyService.doRTDisconnect();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
|
|
Loading…
Reference in a new issue