From 569671ac7177f2faffdf3424c031fa2d6f4a4559 Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Fri, 29 May 2020 05:50:54 -0700 Subject: [PATCH] Fix crash in Widget::TestControllerIntersection() (#3439) Fixes #3438 --- app/src/main/cpp/Widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/Widget.cpp b/app/src/main/cpp/Widget.cpp index f9a51b054..557996c75 100644 --- a/app/src/main/cpp/Widget.cpp +++ b/app/src/main/cpp/Widget.cpp @@ -329,7 +329,7 @@ Widget::TestControllerIntersection(const vrb::Vector& aStartPoint, const vrb::Ve } else { result = m.cylinder->TestIntersection(aStartPoint, aDirection, aResult, aNormal, aClamp, aIsInWidget, aDistance); } - if (result && m.resizing && !aIsInWidget) { + if (result && m.resizing && m.resizer && !aIsInWidget) { // Handle extra intersections while resizing aIsInWidget = m.resizer->TestIntersection(aResult); }