mirror of
https://e.coding.net/circlecloud/YumCore.git
synced 2024-11-22 01:48:50 +00:00
fix: 当值为null时放弃后续解析
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
20f306288f
commit
b39e091cfc
@ -60,8 +60,10 @@ public abstract class AbstractInjectConfig {
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
if (def != null) {
|
if (def != null) {
|
||||||
value = def.value();
|
value = def.value();
|
||||||
} else if (field.getAnnotation(Nullable.class) == null) {
|
} else {
|
||||||
|
if (field.getAnnotation(Nullable.class) == null) {
|
||||||
Log.warning(String.format(PATH_NOT_FOUND, path));
|
Log.warning(String.format(PATH_NOT_FOUND, path));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user