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

Android: Prevent kroll from removing null proxy object pointer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0
    • Fix Version/s: Release 7.0.0
    • Component/s: Android
    • Labels:
      None
    • Story Points:
      3
    • Sprint:
      2017 Sprint 23 SDK

      Description

      • Prevent null pointer dereference when removing proxy pointer

      TEST CASE

      • View map and navigate back repeatedly until crash

        var MapModule = require('ti.map'),
            win = Titanium.UI.createWindow({backgroundColor: 'gray'}),
            btn = Ti.UI.createButton({title: 'VIEW MAP'});
            
        function viewMap () {
            var win = Ti.UI.createWindow({backgroundColor: 'gray'}),
                mapView = MapModule.createView({
                    userLocation: true,
                    mapType: MapModule.NORMAL_TYPE,
                    animate: true,
                    region: {latitude: -33.87365, longitude: 151.20689, latitudeDelta: 0.1, longitudeDelta: 0.1 }
                });
            win.add(mapView);
            win.open();
        }
         
        btn.addEventListener('click', function (e) {
        	if (Ti.Geolocation.hasLocationPermissions()) {
                viewMap();
            } else {
                Ti.Geolocation.requestLocationPermissions(function (e) {
                    if (e.success === true) {
                        viewMap();
                    } else {
                        alert('permissions denied: ' + e.error);
                    }
                });
        	}
        });
         
        win.add(btn);
        win.open();
        

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gmathews Gary Mathews
              Reviewer:
              Christopher Williams
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code