Skip to content

Commit

Permalink
TabInfoFragment: Fix null pointer exception
Browse files Browse the repository at this point in the history
Signed-off-by: Stratos Karafotis <stratosk@semaphore.gr>
  • Loading branch information
Stratos Karafotis committed Nov 24, 2014
1 parent 184f445 commit 5090bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sm/src/main/java/com/semaphore/sm/TabInfoFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onCreate(Bundle savedInstanceState) {
Commander cm = Commander.getInstance();
cm.readFile("/proc/version");
Preference pref = findPreference("kernel_version");
if (pref != null)
if (pref != null && !cm.getOutResult().isEmpty())
pref.setSummary(cm.getOutResult().get(0));

pref = findPreference("Semaphore");
Expand Down

0 comments on commit 5090bc2

Please sign in to comment.