2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Fixed crash

This commit is contained in:
Albert Vaca
2014-09-23 16:40:54 +02:00
parent 624cee5d87
commit d6cc84ccfb

View File

@@ -163,7 +163,7 @@ public class DeviceActivity extends ActionBarActivity {
public boolean onPrepareOptionsMenu(Menu menu) {
super.onPrepareOptionsMenu(menu);
menu.clear();
if (device.isPaired()) {
if (device != null && device.isPaired()) {
menu.add(R.string.device_menu_plugins).setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem menuItem) {