Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25518

Android App Crash due to Attempt to invoke virtual method 'void java.net.HttpURLConnection.disconnect()' on a null object reference

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.0.2
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      2017 Sprint 23 SDK, 2017 Sprint 24 SDK, 2017 Sprint 25 SDK, 2017 Sprint 26 SDK, 2018 Sprint 01 SDK, 2018 Sprint 02 SDK

      Description

      Recently tracking a lot of the following errors. Null checks need to be placed in TiHTTPClient.java.

      e.g.
      1)
      java.lang.NullPointerException

      0 java.lang.NullPointerException: Attempt to invoke virtual method 'void java.net.HttpURLConnection.disconnect()' on a null object reference
      ! 1 at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1293)
      2 at java.lang.Thread.run(Thread.java:818)

      2)
      java.lang.NullPointerException: Attempt to invoke a virtual method on a null object reference
      ! 1 at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1293)
      2 at java.lang.Thread.run(Thread.java:762)

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              fahad86 Muhammad Ahmed Fahad
              Reviewer:
              Joshua Quick
              Tester:
              Lokesh Choudhary
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-5980
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code