From 2e4946ac79c367da5d0ba588dd2fc6fc400a9ada Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 7 Nov 2020 19:10:23 -0800 Subject: [PATCH] Try to get a stack trace when trying to select skin without hash --- src/redux/actionCreators.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/redux/actionCreators.js b/src/redux/actionCreators.js index 0392b77f..8204fdd9 100644 --- a/src/redux/actionCreators.js +++ b/src/redux/actionCreators.js @@ -12,6 +12,10 @@ export function requestUnloadedSkin(index) { } export function selectedSkin(hash, position) { + if (hash == null) { + // trying to narrow down: https://sentry.io/share/issue/04b1bc5c2a764addac4e62dea201096a/ + throw new Error("Tried to select a null skin"); + } return { type: "SELECTED_SKIN", hash, position }; }