From c64c5f54015804ba8c3430b5ec0c5fb5bd235a19 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Sun, 16 Jul 2017 16:38:01 +0200 Subject: [PATCH] NS client quickfix - catch even more --- .../NSClientInternal/broadcasts/BroadcastTreatment.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastTreatment.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastTreatment.java index d56e75ba73..baf81c45c9 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastTreatment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/broadcasts/BroadcastTreatment.java @@ -50,12 +50,8 @@ public class BroadcastTreatment { try { List x = context.getPackageManager().queryBroadcastReceivers(intent, 0); log.debug("TREAT_ADD " + part.length() + " " + x.size() + " receivers"); - } catch (RuntimeException exception){ - if(exception.getCause() instanceof TransactionTooLargeException){ - log.error("TREAT_ADD " + part.length() + " ERROR: no receiver size, CAUSE: " + exception.getMessage()); - } else { - throw exception; - } + } catch (Throwable exception){ + log.debug("TREAT_ADD " + part.length() + " ERROR: no receiver size, CAUSE: " + exception.getMessage()); } }