Fixed crash on empty AvatarsSettings

main
Inga 🏳‍🌈 14 years ago
parent 2095859fc4
commit d5f44823cb
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Common/dataobjects/AvatarsSettings.cs

@ -52,7 +52,7 @@ namespace FLocal.Common.dataobjects {
protected override void doFromHash(Dictionary<string, string> data) { protected override void doFromHash(Dictionary<string, string> data) {
this._accountId = int.Parse(data[TableSpec.FIELD_ACCOUNTID]); this._accountId = int.Parse(data[TableSpec.FIELD_ACCOUNTID]);
this._avatarsIds = new HashSet<int>(from stringId in data[TableSpec.FIELD_AVATARS].Split(',') select int.Parse(stringId)); this._avatarsIds = new HashSet<int>(from stringId in data[TableSpec.FIELD_AVATARS].Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries) select int.Parse(stringId));
} }
private static readonly Dictionary<int, int> accountid2id = new Dictionary<int,int>(); private static readonly Dictionary<int, int> accountid2id = new Dictionary<int,int>();

Loading…
Cancel
Save