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

Commit

Permalink
Fixed NRE in input system profile inspector (#555)
Browse files Browse the repository at this point in the history
* Fixed NRE when mapping profile is null

fixed typo

* updated pipeline triggers
  • Loading branch information
StephenHodgson authored Apr 30, 2020
1 parent bd6fdd1 commit b46d4ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ protected override void OnEnable()

foreach (var mappingProfile in controllerDataProviderProfile.ControllerMappingProfiles)
{
if (mappingProfile == null) { continue; }

AssetDatabase.TryGetGUIDAndLocalFileIdentifier(mappingProfile, out var guid, out long _);

if (!controllerMappingProfiles.ContainsKey(guid))
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Extensions/ArrayExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static T[] AddItem<T>(this T[] array, T newItem)
}

/// <summary>
/// Initialises an array with a default item
/// Initializes an array with a default item
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="array">The array to initialise</param>
Expand Down

0 comments on commit b46d4ee

Please sign in to comment.