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

Windows: Evaluating a null value from Hyperloop crashes the App

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Hyperloop 2.1.3
    • Fix Version/s: Hyperloop 2.2.0
    • Component/s: Hyperloop, Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2017 Sprint 19 SDK

      Description

      Description

      When evaluating a .NET's null value retrieved using Hyperloop (Windows; Hyperloop version 2.1.1) , the application crashes. Take for instance:

      var PopupMenu = require('Windows.UI.Popups.PopupMenu');
      var UICommand = require('Windows.UI.Popups.UICommand');
      var Point = require('Windows.Foundation.Point');
       
      var menu = new PopupMenu();
      var alertHiCommand = new UICommand("Hi!");
      var alertByeCommend = new UICommand("Bye!");
      	
      var commands = menu.Commands;
      commands.Add(alertHiCommand);
      commands.Add(alertByeCommend);
       
      function popupMenu(e)
      {
      	var p = new Point(e.y,e.x);
      	menu.ShowAsync(p).then(function(selectedCommand)
      	{
      		alert(selectedCommand);
      	}, function(err) {alert(err)});
      }
      

      If no command was selected, the application crashes. Otherwise, it works as expected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                vvazquezmontero Victor Vazquez Montero
                Reviewer:
                Gary Mathews
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code