NullPointerException and TODO-Marker on a strange code-line
This commit is contained in:
parent
726b472330
commit
00d30f1b8a
1 changed files with 3 additions and 1 deletions
|
@ -202,7 +202,9 @@ public class MessageProvider extends ContentProvider
|
|||
|
||||
public void setApplication(Application app)
|
||||
{
|
||||
|
||||
if (context == null) {
|
||||
context = app.getApplicationContext();
|
||||
}
|
||||
if (app != null)
|
||||
{
|
||||
mApp = app;
|
||||
|
|
Loading…
Reference in a new issue