CS2212-2012-G2 / SurvivorPool

CS2212 Project
Other
1 stars 0 forks source link

Contestant Panel: Bug After Adding Invalid Contestant Pic #54

Closed JonDemelo closed 12 years ago

JonDemelo commented 12 years ago

New Season > Change to Contestant Panel > add the info + an invalid picture (I used one with a long, messed up file name)

What happens is the error message fills the picture frame area saying roughly "Could not load ... "BIG LONG FILE NAME"".

However, when you attempt to pick a new image, the new one comes up, but the old text stays, fucking up the GUI, to the point where it gobbles up all the text fields.

http://s18.postimage.org/m0zx03nmh/pictureerror.png

Nava2 commented 12 years ago

OK, so we just need someone to go and check that the exception being thrown is caught properly and the image isn't displayed.

Perhaps we need to put ina picture with an X or something to show it was invalid?

slyos commented 12 years ago

Why are we not writing the we couldn't load the picture in the status bar?

Nava2 commented 12 years ago

Just needs someone to add a field to the InvalidFieldException.Field, and then throw one and catch it as appropriate.