Commit 14aa08f
LeonYang5114
Fix bug of overwriting pre-assigned values
The DefaultValuePreprocessor overwrote the value of the module's
corresponding item even if the item is pre-assigned with some value. Now
it checks if the item is primitive or if it is non-null before setting
the default value.
See also:1 parent 032cb85 commit 14aa08f
File tree
1 file changed
+4
-0
lines changed- src/main/java/org/scijava/module/process
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments