NullReferenceException at UI.LoadImageError

When attempting to create a new reward... After hitting NO on the is VIP menu popup...

Failed to call hook 'cmdUI_AG_VIP' on plugin 'AbsolutGifts v1.5.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.AbsolutGifts+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <e075777a23054edba2462ce7e64f4742>:0
at Oxide.Plugins.AbsolutGifts.CreateGifts (BasePlayer player, System.Int32 step) [0x00982] in <e075777a23054edba2462ce7e64f4742>:0
at Oxide.Plugins.AbsolutGifts.cmdUI_AG_VIP (ConsoleSystem+Arg arg) [0x00081] in <e075777a23054edba2462ce7e64f4742>:0
at Oxide.Plugins.AbsolutGifts.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01022] in <e075777a23054edba2462ce7e64f4742>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
This seems to be happening because of the new vehicles objects in the game.
This happens directly after the above error any time the VIP question is answered.

(20:43:06) | Image failed to download! Error: HTTP/1.1 404 Not Found - Image Name: vehicle.1mod.cockpit.armored_0 - Image URL: https://www.rustedit.io/images/imagelibrary/vehicle.1mod.cockpit.armored.png

Merged post

Found the solution to this - The culprit is the ImageLibrary image_urls.json -
The new in game items have image urls that are broken, and the error page is just a website instead of a traditional error page.

To fix this, you'll need to edit your image_urls.json located in oxide/data/ImageLibrary 
Find any images which are broken, and point them to a working image or skin. (Yes this will make it hard to find some things but at least it will work.)

Once done editing, save your file and oxide.reload ImageLibrary
This will automagically reload AbsolutGifts - which may or may not work on the first try.

You want to watch your console for "Image batch (Absolut Gifts) has been stored successfully"

If it does not come up after the first reload, oxide.reload AbsolutGifts - it should come back pretty quickly this time with the success message.
You will now be able to edit gifts!
Failed to call hook 'cmdUI_AG_VIP' on plugin 'AbsolutGifts v1.5.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.AbsolutGifts+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <b90c937a856f477eb4d9a9ebc6ea7354>:0
  at Oxide.Plugins.AbsolutGifts.CreateGifts (BasePlayer player, System.Int32 step) [0x00724] in <b90c937a856f477eb4d9a9ebc6ea7354>:0
  at Oxide.Plugins.AbsolutGifts.cmdUI_AG_VIP (ConsoleSystem+Arg arg) [0x00081] in <b90c937a856f477eb4d9a9ebc6ea7354>:0
  at Oxide.Plugins.AbsolutGifts.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01022] in <b90c937a856f477eb4d9a9ebc6ea7354>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
@geurillanetwork see my fix above your post.
To fix the 'cmdUI_AG_VIP' Null Ref Exception:

In the AbsolutGifts.cs file, replace the entire LoadImage function to the following:

       static public void LoadImage(ref CuiElementContainer container, string panel, string img, string aMin, string aMax)
            {
               try{   //ADD THIS LINE
				   if (img.StartsWith("http") || img.StartsWith("www"))
                {
                    container.Add(new CuiElement
                    {
                        Parent = panel,
                        Components =
                    {
                        new CuiRawImageComponent {Url = img, Sprite = "assets/content/textures/generic/fulltransparent.tga" },
                        new CuiRectTransformComponent {AnchorMin = aMin, AnchorMax = aMax }
                    }
                    });
                }
                else
                    container.Add(new CuiElement
                    {
                        Parent = panel,
                        Components =
                    {
                        new CuiRawImageComponent {Png = img, Sprite = "assets/content/textures/generic/fulltransparent.tga" },
                        new CuiRectTransformComponent {AnchorMin = aMin, AnchorMax = aMax }
                    }
                    });
			   }   //ADD THIS LINE
			   catch{     //ADD THIS LINE
				   return;    //ADD THIS LINE
			   }   //ADD THIS LINE
            }​

This is definitely a hack and could potentially cause issues, but works for me.

Can't create new gifts, clicking create VIP gift yes or no both brings up nothing.

Failed to call hook 'cmdUI_AG_VIP' on plugin 'AbsolutGifts v1.5.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.AbsolutGifts+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.AbsolutGifts.CreateGifts (BasePlayer player, System.Int32 step) [0x00982] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.AbsolutGifts.cmdUI_AG_VIP (ConsoleSystem+Arg arg) [0x00081] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.AbsolutGifts.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00fcd] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
RemiRat

Can't create new gifts, clicking create VIP gift yes or no both brings up nothing.

Failed to call hook 'cmdUI_AG_VIP' on plugin 'AbsolutGifts v1.5.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.AbsolutGifts+UI.LoadImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String panel, System.String img, System.String aMin, System.String aMax) [0x00000] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.AbsolutGifts.CreateGifts (BasePlayer player, System.Int32 step) [0x00982] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.AbsolutGifts.cmdUI_AG_VIP (ConsoleSystem+Arg arg) [0x00081] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.AbsolutGifts.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00fcd] in <bf1175c2823341549a83f7d266c16390>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0

did you read my post above yours?  that should fix it.