summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-07-01 18:07:44 +0200
committerSean Leonard <meanderingcode@aetherislands.net>2013-07-12 14:26:28 -0600
commit478b8b50cabc6955314d147bdadadc6127f56e5f (patch)
treeb2fd109027918e1f9f7280cabb45e1a190bcc460 /src/se/leap/leapclient
parente3dd09bb37f6727a09a2d5da7c880997555b4d1f (diff)
Check a nullpointer textview.
Diffstat (limited to 'src/se/leap/leapclient')
-rw-r--r--src/se/leap/leapclient/Dashboard.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/se/leap/leapclient/Dashboard.java b/src/se/leap/leapclient/Dashboard.java
index 5855b6a..59c0f18 100644
--- a/src/se/leap/leapclient/Dashboard.java
+++ b/src/se/leap/leapclient/Dashboard.java
@@ -169,7 +169,9 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
intent.putExtra(ConfigHelper.RECEIVER_TAG, mEIPReceiver);
startService(intent);
- ((ViewStub) findViewById(R.id.eipOverviewStub)).inflate();
+ ViewStub eip_overview_stub = ((ViewStub) findViewById(R.id.eipOverviewStub));
+ if(eip_overview_stub != null)
+ eip_overview_stub.inflate();
eipTypeTV = (TextView) findViewById(R.id.eipType);
eipTypeTV.setText(provider.getEIPType());