1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-08 12:18:07 -05:00

IRCService: Fixed a NullPointerException

This commit is contained in:
Sebastian Kaspari 2010-11-18 18:43:37 +01:00
parent 46cb3f9f17
commit ce0650d711

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.