Fix NullPointerException if String value is null
Change-Id: I1dbec095a4763fc0a7f06e38f24a4b033ec375d0 Signed-off-by: Eryk Szymanski <eryksz@gmail.com>
This commit is contained in:
parent
45e5758431
commit
e6cdfa5769
@ -284,11 +284,11 @@ public class ProjectConfigEntry {
|
|||||||
return value != null ? Boolean.parseBoolean(value) : null;
|
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;
|
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;
|
return value != null ? Long.parseLong(value) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user