Skip to content
Snippets Groups Projects
Commit ef3e1976 authored by Andreia Gaita's avatar Andreia Gaita
Browse files

Fix weird null texture exception being thrown by Unity

parent 9bb2d683
No related branches found
No related tags found
No related merge requests found
...@@ -334,7 +334,8 @@ namespace GitHub.Unity ...@@ -334,7 +334,8 @@ namespace GitHub.Unity
{ {
status = entries[idx].Status; status = entries[idx].Status;
var statusIcon = Styles.GetGitFileStatusIcon(status.Value); var statusIcon = Styles.GetGitFileStatusIcon(status.Value);
GUI.DrawTexture(statusRect, statusIcon); if (statusIcon != null)
GUI.DrawTexture(statusRect, statusIcon);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment