Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Update ControllerPopupWindow.cs (#644)
Browse files Browse the repository at this point in the history
Fix potential NRE in controller popup window. Pulled out change from hands branch.
  • Loading branch information
FejZa authored Jun 17, 2020
1 parent c2723f3 commit de181b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static void Show(MixedRealityControllerMappingProfile profile, Serialized

window = (ControllerPopupWindow)CreateInstance(typeof(ControllerPopupWindow));

window.currentControllerName = profile.ControllerType.Type.Name;
window.currentControllerName = profile.ControllerType?.Type?.Name;
window.titleContent = new GUIContent($"{window.currentControllerName} {handednessTitleText}Input Action Assignment");
window.controllerDataProviderProfile = profile;
window.currentInteractionProfiles = interactionMappingProfiles;
Expand Down

0 comments on commit de181b5

Please sign in to comment.