Skip to content

Commit a24e49e

Browse files
committed
Add missing null check
1 parent 582ed2e commit a24e49e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/TSMapEditor/UI/UIManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ private void InitNotificationManager()
335335

336336
private void SetNotificationManagerSizeAndPosition()
337337
{
338+
if (notificationManager == null)
339+
return;
340+
338341
notificationManager.X = editorSidebar.X + Constants.UIEmptySideSpace;
339342
notificationManager.Width = WindowManager.RenderResolutionX - (notificationManager.X * 2);
340343
notificationManager.Y = 100;

src/TSMapEditor/UI/Windows/HousesWindow.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System;
66
using System.Globalization;
77
using System.Linq;
8-
using TSMapEditor.Initialization;
98
using TSMapEditor.Models;
109
using TSMapEditor.UI.Controls;
1110

0 commit comments

Comments
 (0)