Crash with "When near cell" block

64 views
Skip to first unread message

frederi...@gmail.com

unread,
Feb 4, 2017, 3:23:07 AM2/4/17
to Automate
Hi,

I have strange crash from time to time with the block "When near cell" set to trigger "when change"

Log say:

2017-02-02 19:14:07.221 FAIL 711940@11: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.telephony.TelephonyManager.getAllCellInfo()' on a null object reference
2017-02-02 19:14:07.608 FAIL 711940@11: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.telephony.TelephonyManager.getNeighboringCellInfo()' on a null object reference
2017-02-04 11:05:36.462 FAIL 715113@11: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.telephony.TelephonyManager.getAllCellInfo()' on a null object reference
2017-02-04 11:05:36.627 FAIL 715113@11: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.List android.telephony.TelephonyManager.getNeighboringCellInfo()' on a null object reference

As I understand it's a bug since this block has no reason to crash the flow...

Can you please try to fix it? What kind of extra information do you need? It can run for one or two days and then it crash...

Henrik "The Developer" Lindqvist

unread,
Feb 4, 2017, 4:59:28 PM2/4/17
to Automate, frederi...@gmail.com
It's likely caused by the mobile hardware being temporary disabled or unavailable.
It's not a bug, at least not in Automate. There's not much i can do to fix it, but i'll improve the error description in the next release.

Fr ed

unread,
Feb 4, 2017, 8:05:18 PM2/4/17
to Henrik "The Developer" Lindqvist, Automate
Hi,

Attached another log made with full debug option...  Can't you had something like a catch and wait few seconds to restart the scan?  Or trigger the event with an empty list... 

I have added error handling as you can see below but if I need do it for each block who rely on hardware it's not so good,  especially when set as when change...  


Hope you can do something...

Best regards

flow-13.log
Reply all
Reply to author
Forward
0 new messages