Bug #307
Adding Server crashes with NullReferenceException
Status: | Closed | Start: | 01/18/2010 | |
Priority: | High | Due date: | ||
Assigned to: | Mirco 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
Use more tolerant cast when reading OnConnectCommands from config (closes: #307)
History
Updated by Mirco Bauer 5451 days ago
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 5446 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 29d57eeee3a83b7b73be663a0659bbe9edc05db8.