Skip to content

Commit 8080bca

Browse files
committed
Fix a NRE in the UI if textures do not load
1 parent 9c5a29a commit 8080bca

File tree

1 file changed

+2
-2
lines changed
  • Intersect.Client.Framework/Gwen/Skin/Texturing

1 file changed

+2
-2
lines changed

Intersect.Client.Framework/Gwen/Skin/Texturing/Bordered.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Intersect.Client.Framework.GenericClasses;
1+
using Intersect.Client.Framework.GenericClasses;
22
using Intersect.Client.Framework.Graphics;
33

44
namespace Intersect.Client.Framework.Gwen.Skin.Texturing;
@@ -185,7 +185,7 @@ public void Draw(Renderer.Base render, Rectangle r, Color col)
185185

186186
public bool Equals(Bordered other)
187187
{
188-
return _texture.Equals(other._texture) && _subRects.Equals(other._subRects) && _margin.Equals(other._margin) && _width.Equals(other._width) && _height.Equals(other._height);
188+
return (_texture?.Equals(other._texture) ?? false) && _subRects.Equals(other._subRects) && _margin.Equals(other._margin) && _width.Equals(other._width) && _height.Equals(other._height);
189189
}
190190

191191
public override bool Equals(object? obj)

0 commit comments

Comments
 (0)