Android: Remove code that was causing a null reference exception

This commit is contained in:
Rom Walton 2013-02-20 18:14:48 -05:00 committed by Oliver Bock
parent 10e78e4586
commit 47ca84501f
1 changed files with 2 additions and 2 deletions

View File

@ -570,8 +570,9 @@ public class Monitor extends Service {
//
clientPid = getPidForProcessName(clientProcessName);
if(clientPid != null) {
publishProgress("Starting the BOINC client");
if (!runClient()) {
publishProgress("BOINC client failed to start!");
publishProgress("BOINC client failed to start");
return false;
}
}
@ -747,7 +748,6 @@ public class Monitor extends Service {
}
// Find required pid
publishProgress("getPidForProcessName(): " + processName + " is " + pMap.get(processName).toString());
return pMap.get(processName);
}