title: Google Play Console Crash - Identify line number from Stack Trace
body: <p>I get irregular crashes reported through the Google Play Console. Looking at one of the crashes, it shows:</p>
  <pre><code>Caused by: java.lang.NullPointerException:  at android.util.Base64.decode(Base64.java:120)
      at appname.LW02WidgetProvider.a(Unknown Source:202)
      at es.antonborri.home_widget.e.onUpdate(Unknown Source:24)
      at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:66)
      at android.app.ActivityThread.handleReceiver(ActivityThread.java:4329)
  </code></pre>
  <p>Am I right in assuming that the crash occurred in my LW02WidgetProvider on line 202? This is the relevant code from this part of that file. Line 202 is the setImageViewBitmap:</p>
  <pre><code>val imageBytes5 = Base64.decode(widgetData.getString(&quot;dayfiveIcon&quot;, null), Base64.DEFAULT)
  val decodedImage5 = BitmapFactory.decodeByteArray(imageBytes5, 0, imageBytes5.size)
  setImageViewBitmap(R.id.lw02_dayfiveIcon, decodedImage5)
  </code></pre>
  <p>I'm assuming that widgetData.getString is returning null?</p>
  <p>EDIT:
  I've just looked at an older similar crash in one of my other widgets. This is the Stack Trace:</p>
  <pre><code>Caused by: java.lang.NullPointerException: 
    at android.util.Base64.decode (Base64.java:120)
    at appname.LW01WidgetProvider.onUpdate (LW01WidgetProvider.java:202)
    at es.antonborri.home_widget.HomeWidgetProvider.onUpdate (HomeWidgetProvider.java:24)
    at android.appwidget.AppWidgetProvider.onReceive (AppWidgetProvider.java:66)
    at android.app.ActivityThread.handleReceiver (ActivityThread.java:4748)
    at android.app.ActivityThread.access$1800 (ActivityThread.java:309)
    at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2279)
    at android.os.Handler.dispatchMessage (Handler.java:106)
    at android.os.Looper.loopOnce (Looper.java:226)
    at android.os.Looper.loop (Looper.java:313)
    at android.app.ActivityThread.main (ActivityThread.java:8582)
    at java.lang.reflect.Method.invoke (Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:563)
    at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1133)
  </code></pre>
  <p>This again indicates line 202 of the LW01WidgetProvider - but there is no line 202 in that file?</p>