Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

CallScriptMethod Sierra 10.12 issue

$
0
0

After the call

this.WebBrowser.WindowScriptObject.CallWebScriptMethod (script, new NSObject[]{});

my application is crashing with exception

System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication:NSApplicationMain (int,string[])
  at MonoMac.AppKit.NSApplication.Main (System.String[] args) [0x00041] in /Users/builder/data/lanes/3508/c1e5fa01/source/xamarin-macios/src/AppKit/NSApplication.cs:94 
  at Safelog.Program.Main (System.String[] args) [0x00054] in /Users/robert/Downloads/Safelog_Win/Safelog.Mac/Program.cs:40

That code works fine in previous versions of macOS


Viewing all articles
Browse latest Browse all 1429

Trending Articles