[BUG] NullReferenceExeption in LoadProfile action

Post Reply
Posts: 1079
Joined: Sat Jan 07, 2017 4:00 pm

[BUG] NullReferenceExeption in LoadProfile action

Post by DartKotik » Wed Oct 30, 2019 12:42 pm

My action creates an instance of Astral.Quester.Actions.LoadProfile and invokes Run()

Code: Select all

        public override ActionResult Run()
            if (!IntenalConditions)
                return ActionResult.Fail;

            Logger.WriteLine($"Pull profile from stack : {lastProfile}");
            var result =  new LoadProfile {ProfileName = lastProfile.ToString()}.Run();
            if (result == ActionResult.Fail)
                return result;

            if (ClearStack)
            return result;
While executing I got this error:

Code: Select all

[15:19] Action set to : PullProfileFromStack : ./M16_MainExpedition_Loader.amp.zip
[15:19] Pull profile from stack : ./M16_MainExpedition_Loader.amp.zip
[15:19] Error in 'CheckAction' state : 
System.NullReferenceException: Ссылка на объект не указывает на экземпляр объекта.
   в System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   в System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   в Astral.Controllers.Forms.InvokeOnMainThread(Action action)
   в Astral.Quester.Forms.Editor.refreshAll()
   в Astral.Quester.Classes.Actions.LoadProfile.Run()
   в QuesterAssistant.Actions.PullProfileFromStack.Run()
   в Astral.Quester.Classes.ActionPlayer.Run()
   в Astral.Quester.FSM.States.CheckAction.Run()
   в Astral.Logic.Classes.FSM.Engine.Pulse()
[15:19] Action set to : Preparation
[15:19] Action set to : LoadUCCProfile Hunter_Main_Meele.xml
As can see profile was been loaded succesfully and continued to run, but MainForm of Quester was empty.
After returning to Main Astral form and again to Quester profile content has been shown.
Sorry for my English. I translate with Google.
Quester Assistant plugin

Frenetic botter
Frenetic botter
Posts: 95
Joined: Mon Sep 19, 2016 10:09 am

Re: [BUG] NullReferenceExeption in LoadProfile action

Post by freitag » Thu Oct 31, 2019 1:47 pm

this happens to me when i test actions from my plugin and something is fucked up there.

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests