Bug #919

avatar

NullReferenceException thrown in ChatTreeView.IsVisible()

Added by Mirco Bauer 4021 days ago. Updated 4021 days ago.

Status:Closed Start:12/22/2013
Priority:Normal Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Frontend GNOME
Target version:0.10.1
Complexity:

Found in Version:

Votes: 0

Description

Exception Type:
System.NullReferenceException

Exception Message:
Object reference not set to an instance of an object

Exception StackTrace:
  at Smuxi.Frontend.Gnome.ChatTreeView.IsVisible (Smuxi.Frontend.Gnome.ChatView chatView) [0x00031] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/ChatTreeView.cs:180 
  at Smuxi.Frontend.Gnome.NotifyManager.OnChatViewMessageHighlighted (System.Object sender, Smuxi.Frontend.Gnome.MessageTextViewMessageHighlightedEventArgs e, Smuxi.Frontend.Gnome.ChatView chatView) [0x00000] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/NotifyManager.cs:219 
  at Smuxi.Frontend.Gnome.NotifyManager+<OnChatViewManagerChatAdded>c__AnonStorey24.<>m__39 (System.Object o, Smuxi.Frontend.Gnome.MessageTextViewMessageHighlightedEventArgs args) [0x00000] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/NotifyManager.cs:191 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_MessageTextViewMessageHighlightedEventArgs (object,Smuxi.Frontend.Gnome.MessageTextViewMessageHighlightedEventArgs)
  at Smuxi.Frontend.Gnome.MessageTextView.AddMessage (Smuxi.Engine.MessageModel msg, Boolean addLinebreak, Boolean showTimestamps) [0x005b0] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/MessageTextView.cs:454 
  at Smuxi.Frontend.Gnome.MessageTextView.AddMessage (Smuxi.Engine.MessageModel msg, Boolean addLinebreak) [0x00000] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/MessageTextView.cs:250 
  at Smuxi.Frontend.Gnome.MessageTextView.AddMessage (Smuxi.Engine.MessageModel msg) [0x00000] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/MessageTextView.cs:245 
  at Smuxi.Frontend.Gnome.ChatView.AddMessage (Smuxi.Engine.MessageModel msg) [0x00026] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/Chats/ChatView.cs:595 
  at Smuxi.Frontend.Gnome.GroupChatView.AddMessage (Smuxi.Engine.MessageModel msg) [0x00000] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/Chats/GroupChatView.cs:378 
  at Smuxi.Frontend.Gnome.ChatView.Populate () [0x00088] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/Chats/ChatView.cs:555 
  at Smuxi.Frontend.Gnome.GroupChatView.Populate () [0x0018c] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/Views/Chats/GroupChatView.cs:373 
  at Smuxi.Frontend.Gnome.ChatViewManager+<OnChatSynced>c__AnonStorey23.<>m__38 () [0x00071] in /build/buildd/smuxi-0.10/src/Frontend-GNOME/ChatViewManager.cs:345 
  at GLib.Idle+IdleProxy.Handler () [0x00000] in <filename unknown>:0

Related issues

duplicated by Smuxi - Bug #926 Exception: Object reference not set to an instance of an object Closed 01/01/2014

Associated revisions

Revision 77c95de99d77c327fde57c0efdd6d56f019952a4
Added by Mirco Bauer 4021 days ago

Frontend-GNOME: fixed NRE thrown in ChatTreeView.IsVisible() (closes: #919)

Seems like TreeView.GetVisibleRange() returns false and doesn't set the out
parameters when the treeview is not visible/realized. This happened on
Ubuntu/Quantal where the treeview is not expanding to its preferred size for
some reason.

History

Updated by Mirco Bauer 4021 days ago

avatar
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF