forked from External/mage
fix a bug causes npe.
This commit is contained in:
parent
848e542ee4
commit
200c791eed
2 changed files with 35 additions and 37 deletions
|
|
@ -180,8 +180,10 @@ public class PreferencesDialog extends javax.swing.JDialog {
|
|||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
if(extend.equals(".png") || extend.equals(".bmp"))
|
||||
return "Image File(*.png, *.bmp)";
|
||||
if(extend.equals(".png"))
|
||||
return "Image File(*.png)";
|
||||
if(extend.equals(".bmp"))
|
||||
return "Image File(*.bmp)";
|
||||
if(extend.equals(".jpg") || extend.equals(".jpg"))
|
||||
return "JEGP file(*.jpg,*.jepg)";
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue