From 0341c7f61f7a78598e6d1e56a5c5794fa91c608e Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sun, 25 Sep 2016 23:05:27 +0200 Subject: [PATCH] fix e.printStackTrace() by logging instead --- .../gadgetbridge/activities/DiscoveryActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DiscoveryActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DiscoveryActivity.java index 18b70c76c..75f09f5d8 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DiscoveryActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DiscoveryActivity.java @@ -120,7 +120,7 @@ public class DiscoveryActivity extends GBActivity implements AdapterView.OnItemC //logMessageContent(result.getScanRecord().getBytes()); handleDeviceFound(result.getDevice(), (short) result.getRssi()); } catch (NullPointerException e) { - e.printStackTrace(); + LOG.warn("Error handling scan result", e); } } };