IRCService: Fixed a NullPointerException

This commit is contained in:
Sebastian Kaspari 2010-11-18 18:43:37 +01:00
parent 46cb3f9f17
commit ce0650d711
1 changed files with 3 additions and 1 deletions

View File

@ -141,7 +141,9 @@ public class IRCService extends Service
*/
public int onStartCommand(Intent intent, int flags, int startId)
{
handleCommand(intent);
if (intent != null) {
handleCommand(intent);
}
// We want this service to continue running until it is explicitly
// stopped, so return sticky.