diff options
author | Lluis Sanchez <slluis.devel@gmail.com> | 2015-02-21 00:24:31 +0300 |
---|---|---|
committer | Lluis Sanchez <slluis.devel@gmail.com> | 2015-02-21 00:24:31 +0300 |
commit | c839f8d7bfc7c1eaac9514c9aa71eb20492df47b (patch) | |
tree | 605ec45063e9c67a6b5e64fdca3df13bcc2d6a0f | |
parent | 9de1132ad24f77bb032c52d1da7e12aa9cb1e666 (diff) | |
parent | ebeaff7da873944cbde292dfd646064056e7aa0a (diff) |
Merge pull request #725 from mono/fix-solutionpad-nre
[Ide] Add some null checks
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs index c3a240c405..f280452572 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs @@ -238,6 +238,9 @@ namespace MonoDevelop.Ide.Gui.Components void SetIconCellData (Gtk.TreeViewColumn col, Gtk.CellRenderer renderer, Gtk.TreeModel model, Gtk.TreeIter it) { + if (model == null) + return; + var info = (NodeInfo)model.GetValue (it, NodeInfoColumn); var cell = (ZoomableCellRendererPixbuf)renderer; @@ -252,6 +255,9 @@ namespace MonoDevelop.Ide.Gui.Components void SetTextCellData (Gtk.TreeViewColumn col, Gtk.CellRenderer renderer, Gtk.TreeModel model, Gtk.TreeIter it) { + if (model == null) + return; + var info = (NodeInfo)model.GetValue (it, NodeInfoColumn); var cell = (CustomCellRendererText)renderer; |