Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

getStorageDir contains .null for JavaSE build #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call getStorageDir in JavaSEPort.java
2. return string contains .null because getStorageData returns null

What is the expected output? What do you see instead?
Changed the getStorageDir in JavaSEPort.java to:

private File getStorageDir() {
        if (storageDir == null) {
            if(getStorageData()==null){
                setStorageData("CodenameOne");
            }
            storageDir = new File(System.getProperty("user.home"), "." + ((String) getStorageData()));
            storageDir.mkdirs();
        }
        return storageDir;
    }

What version of the product are you using? On what operating system?
Latest trunk

Please provide any additional information below.

Original issue reported on code.google.com by andre.jo...@gmail.com on 16 Apr 2012 at 2:04

GoogleCodeExporter commented 9 years ago
thanks

Original comment by cf27...@gmail.com on 16 Apr 2012 at 3:18