Bug #307

avatar

Adding Server crashes with NullReferenceException

Added by Mirco Bauer 5421 days ago. Updated 5416 days ago.

Status:Closed Start:01/18/2010
Priority:High Due date:
Assigned to:avatarMirco Bauer % Done:

100%

Category:Frontend GNOME
Target version:0.7.1
Complexity:

Low

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.Engine.ServerListController.GetServer(String protocol, String servername)
at Smuxi.Engine.ServerListController.AddServer(ServerModel server)
at Smuxi.Frontend.Gnome.ServerListView.Add()
at Smuxi.Frontend.Gnome.ServerListView.OnAddButtonClicked(Object sender, EventArgs e)

Server -> Manage -> Add

I filled in the information and then I clicked "Ok" then it crashed with the given stacktrace.

Associated revisions

Revision 29d57eeee3a83b7b73be663a0659bbe9edc05db8
Added by Mirco Bauer 5416 days ago

Use more tolerant cast when reading OnConnectCommands from config (closes: #307)

History

Updated by Mirco Bauer 5421 days ago

avatar
Another crash when adding a server:
Exception Type:
System.InvalidCastException

Exception Message:
Unable to cast object of type 'System.String' to type 'System.Collections.Generic.IList`1[System.String]'.

Exception StackTrace:
   at Smuxi.Engine.ServerListController.GetServer(String protocol, String servername)
   at Smuxi.Engine.ServerListController.AddServer(ServerModel server)
   at Smuxi.Frontend.Gnome.ServerListView.Add()
   at Smuxi.Frontend.Gnome.ServerListView.OnAddButtonClicked(Object sender, EventArgs e)

src/Engine/Config/ServerListController.cs:99
For some reason _UserConfig[prefix + "OnConnectCommands"]; return System.String instead of System.Collections.IList<string>.

Updated by Mirco Bauer 5416 days ago

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

Also available in: Atom PDF