summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/applet
Side-by-side diff
Diffstat (limited to 'noncore/net/opietooth/applet') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/applet/bluezapplet.cpp8
1 files changed, 6 insertions, 2 deletions
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
@@ -64,4 +64,5 @@ namespace OpieTooth {
int BluezApplet::checkBluezStatus() {
- if (btDevice->isLoaded() ) {
- return 1;
+ if (btDevice) {
+ if (btDevice->isLoaded() ) {
+ return 1;
} else {
@@ -69,2 +70,5 @@ namespace OpieTooth {
}
+ } else {
+ return 0;
+ }
}