loopj/airbrake-android — Issue #9: NullPointerException if context is null on register
Author: sas101
Created: 2011-10-12 15:16:54+00:00
State: open

When calling AirbrakeNotifier.register with null instead of a Context, you get a NPE, see below.

I'd expect to get a IllegalArgumentException telling me that Context is null. As other arguments are already checked, this seems to be have been forgotten?

java.lang.NullPointerException
at com.loopj.android.airbrake.AirbrakeNotifier.register(AirbrakeNotifier.java:140)

I'll fix it and send a pull request.