Waty / WatyBot

A Bot For EMS
https://ccplz.net/resources/authors/waty.25932/
10 stars 8 forks source link

Updater should initialize addressList when no AOBs.xml file is found #39

Closed Francesco149 closed 9 years ago

Francesco149 commented 9 years ago

Hey, the updater is pretty dam handy (although I don't like CLI). The only minor issue I've seen so far is that the first time you inject it and try to add an aob it will throw a nullreferenceexception if you do not have an AOBs.xml file already saved. This is easily solved by adding

else 
{
    addressList = gcnew List<Address ^>;
}

where it checks if the file exists in MyForm::ReadXmlData

Waty commented 9 years ago

Thanks for reporting the issue, I'm actually thinking of rewriting this using nanapro instead of CLI if I'm bored at school tomorrow :-P