yarl / vicuna

Tool for uploading files to Wikimedia Commons and other Wikimedia projects
http://yarl.github.io/vicuna/
42 stars 24 forks source link

Fix potential crash on PFile #94

Open saper opened 7 years ago

saper commented 7 years ago

Methods overriden from JPanel can be called any time during its construction, even before we've had a chance to initComponents();

Protect against unsafe use of the tName in setName() and getName(), other methods should be safe.

(getName() has been restored to maintain symmetry of the bean).

saper commented 7 years ago

This might fix https://github.com/yarl/vicuna/issues/93

I don't know why getName() got removed from the class and setName() is still there, so I have added the method again for symmetry.