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.
https://github.com/appcelerator/hyperloop.next/pull/204
Verified ticket in Hyperloop 2.2.0 evaluating null no longer crashes the application Studio: 4.10.0.201709271713 SDK: 6.2.2.GA, 6.3.0.v20170929040536 Appc NPM: 4.2.9 Appc CLI: 6.2.4 Hyperloop: 2.2.0RC2
[~vvazquezmontero] How about this? Expected: No crash when you click app window (popup appears) and then you should be able to click elsewhere to cancel popup.