public static String getPlatformPath(ProfileInfo profile, String version) {
if ( profile == null ) {
profile = getLatestProfileInfo();
+ if ( null == profile )
+ {
+ return null;
+ }
}
+
if ( version == null ) {
version = profile.getLatestPlatformVersion();
}
InputStream is = null;
try {
- Properties prop = new Properties() {
+ final Properties prop = new Properties() {
+ /**
+ *
+ */
+ private static final long serialVersionUID =
+ 8616159524414427526L;
+
@Override
public void load(InputStream fis) throws IOException {
Scanner in = new Scanner(fis);