Code:
System.NullReferenceException: Object reference not set to an instance of an object.
at PoeHUD.Hud.Loot.ItemAlertPlugin.OnEntityAdded(EntityWrapper entity)
at System.Action`1.Invoke(T obj)
at PoeHUD.Models.EntityListWrapper.RefreshState()
at PoeHUD.Controllers.GameController.RefreshState()
at PoeHUD.Hud.ExternalOverlay.OnRender()
at PoeHUD.Framework.Helpers.ActionHelper.SafeInvoke(Action action)
at PoeHUD.Hud.UI.Graphics.RenderLoop()
at PoeHUD.Hud.ExternalOverlay.<OnLoad>b__b()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Bug from #5c415607 (29.01.2015 5:50:46)
Fixed (eu version)
Code:
From ed850165ebe1880111c2640199cc49e488b9caa3 Mon Sep 17 00:00:00 2001
From: doragon<[email protected]>
Date: Sun, 3 May 2015 06:36:20 +0300
Subject: [PATCH] Fixed crashing on login screen
---
src/Models/EntityListWrapper.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Models/EntityListWrapper.cs b/src/Models/EntityListWrapper.cs
index d7dd740..9c779b4 100644
--- a/src/Models/EntityListWrapper.cs
+++ b/src/Models/EntityListWrapper.cs
@@ -66,7 +66,9 @@ public void RefreshState()
{
Player = new EntityWrapper(gameController, address);
}
-
+ if (gameController.Area.CurrentArea == null)
+ return;
+
Dictionary<int, Entity> newEntities = gameController.Game.IngameState.Data.EntityList.EntitiesAsDictionary;
var newCache = new Dictionary<int, EntityWrapper>();
foreach (var keyEntity in newEntities)
--
1.9.5.msysgit.0