We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 461ef36 + 6b005f2 commit 9e5e7d3Copy full SHA for 9e5e7d3
sdl_android_lib/src/com/smartdevicelink/proxy/SdlProxyBase.java
@@ -625,8 +625,15 @@ else if (_appService != null)
625
{
626
return;
627
}
628
- Context myContext = myService.getApplicationContext();
629
- if (myContext != null) myContext.sendBroadcast(sendIntent);
+ try
+ {
630
+ Context myContext = myService.getApplicationContext();
631
+ if (myContext != null) myContext.sendBroadcast(sendIntent);
632
+ }
633
+ catch(Exception ex)
634
635
+ //If the service or context has become unavailable unexpectedly, catch the exception and move on -- no broadcast log will occur.
636
637
638
639
private void writeToFile(Object writeME, String fileName) {
0 commit comments