From 34b68507898f2a01333281a7293d0bbd3c6d77ee Mon Sep 17 00:00:00 2001 From: harlekin Date: Sat, 01 Jun 2002 23:55:11 +0000 Subject: segfault fixed --- (limited to 'noncore/net/opietooth/applet/bluezapplet.cpp') diff --git a/noncore/net/opietooth/applet/bluezapplet.cpp b/noncore/net/opietooth/applet/bluezapplet.cpp index b662ff7..39a9c6e 100644 --- a/noncore/net/opietooth/applet/bluezapplet.cpp +++ b/noncore/net/opietooth/applet/bluezapplet.cpp @@ -62,11 +62,15 @@ namespace OpieTooth { } int BluezApplet::checkBluezStatus() { - if (btDevice->isLoaded() ) { - return 1; + if (btDevice) { + if (btDevice->isLoaded() ) { + return 1; } else { return 0; } + } else { + return 0; + } } int BluezApplet::setBluezStatus(int c) { -- cgit v0.9.0.2