Skip to content

Commit 9d71070

Browse files
author
Lukas Molzberger
committed
fixed npe
1 parent 248d2c4 commit 9d71070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/network/aika/neuron/activation/Activation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public State computeValueAndWeight(SearchNode sn) throws RecursiveDepthExceededE
449449
actValue,
450450
actUBValue,
451451
net,
452-
net > 0.0 ? fired + (getType() == EXCITATORY ? 1 : 0) : null,
452+
net > 0.0 ? (fired != null ? fired : 0) + (getType() == EXCITATORY ? 1 : 0) : null,
453453
newWeight
454454
);
455455
}

0 commit comments

Comments
 (0)