IRCService: Fixed a NullPointerException
This commit is contained in:
parent
46cb3f9f17
commit
ce0650d711
|
@ -141,7 +141,9 @@ public class IRCService extends Service
|
||||||
*/
|
*/
|
||||||
public int onStartCommand(Intent intent, int flags, int startId)
|
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
|
// We want this service to continue running until it is explicitly
|
||||||
// stopped, so return sticky.
|
// stopped, so return sticky.
|
||||||
|
|
Loading…
Reference in New Issue