Fix NullPointerException if String value is null

Change-Id: I1dbec095a4763fc0a7f06e38f24a4b033ec375d0
Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
This commit is contained in:
Eryk Szymanski 2014-03-06 22:51:48 +01:00
parent 45e5758431
commit e6cdfa5769

View File

@ -284,11 +284,11 @@ public class ProjectConfigEntry {
return value != null ? Boolean.parseBoolean(value) : null;
}
private static int toInt(String value) {
private static Integer toInt(String value) {
return value != null ? Integer.parseInt(value) : null;
}
private static long toLong(String value) {
private static Long toLong(String value) {
return value != null ? Long.parseLong(value) : null;
}
}