From 0d84559606fb12211c3ec2dc5602a9a4825aad5d Mon Sep 17 00:00:00 2001
From: EliteMasterEric <ericmyllyoja@gmail.com>
Date: Mon, 18 Sep 2023 17:19:31 -0400
Subject: [PATCH] HTML5 should build now

---
 hmm.json                                                    | 4 ++--
 source/funkin/ui/debug/charting/ChartEditorDialogHandler.hx | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/hmm.json b/hmm.json
index 50cc68851..f06b295e4 100644
--- a/hmm.json
+++ b/hmm.json
@@ -49,8 +49,8 @@
       "name": "haxeui-core",
       "type": "git",
       "dir": null,
-      "ref": "f5daafe93bdfa957538f199294a54e0476c805b7",
-      "url": "https://github.com/haxeui/haxeui-core/"
+      "ref": "e92d5cfac847943fac84696b103670d55c2c774f",
+      "url": "https://github.com/haxeui/haxeui-core"
     },
     {
       "name": "haxeui-flixel",
diff --git a/source/funkin/ui/debug/charting/ChartEditorDialogHandler.hx b/source/funkin/ui/debug/charting/ChartEditorDialogHandler.hx
index eb75e31c5..59bee0d74 100644
--- a/source/funkin/ui/debug/charting/ChartEditorDialogHandler.hx
+++ b/source/funkin/ui/debug/charting/ChartEditorDialogHandler.hx
@@ -631,7 +631,8 @@ class ChartEditorDialogHandler
 
     for (charKey in state.currentSongMetadata.playData.playableChars.keys())
     {
-      var charData:SongPlayableChar = state.currentSongMetadata.playData.playableChars.get(charKey);
+      var charData:Null<SongPlayableChar> = state.currentSongMetadata.playData.playableChars.get(charKey);
+      if (charData == null) continue;
       charIdsForVocals.push(charKey);
       if (charData.opponent != null) charIdsForVocals.push(charData.opponent);
     }