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

Android: Liveview throws exception due to null object reference with latest 8.0.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 8.0.0
    • Fix Version/s: Release 8.0.0
    • Component/s: Android, LiveView
    • Labels:
    • Environment:

      Description

      This is a regression.

      Steps to reproduce:

      1. Build and launch an Android app to device/simulator with liveview turned on.
      2. Make changes to any property so that reload of the app is triggered.

      Actual results:

      1. After the app launch we see Address in use, retrying... in the studio console.
      2. After a property is changed & app reloads below exception is thrown:

      [ERROR] :  [Nexus 6P] TiExceptionHandler: (main) [290,9951] Attempt to invoke virtual method 'java.io.InputStream java.net.Socket.getInputStream()' on a null object reference
      [ERROR] :  [Nexus 6P] TiExceptionHandler:
      [ERROR] :  [Nexus 6P] TiExceptionHandler:     ti.modules.titanium.network.socket.TCPProxy.readSync(TCPProxy.java:392)
      [ERROR] :  [Nexus 6P] TiExceptionHandler:     ti.modules.titanium.stream.StreamModule.pumpSync(StreamModule.java:359)
      [ERROR] :  [Nexus 6P] TiExceptionHandler:     ti.modules.titanium.stream.StreamModule.access$300(StreamModule.java:24)
      [ERROR] :  [Nexus 6P] TiExceptionHandler:     ti.modules.titanium.stream.StreamModule$3.run(StreamModule.java:343)
      [ERROR] :  [Nexus 6P] TiExceptionHandler:     java.lang.Thread.run(Thread.java:764)
      

      NOTE: The app reloads fine & the necessary changes are seen behind the runtime error in the device.

      Expected result:

      1. No runtime error is seen & liveview works as expected.

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              lchoudhary Lokesh Choudhary
              Reviewer:
              Joshua Quick
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code