Skip to content

Commit a690519

Browse files
author
lukas.molzberger
committed
- ref counting fix
1 parent caf2965 commit a690519

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/network/aika/elements/neurons/NeuronProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public NeuronProvider(Model model, Long id, RefType rt) {
7373
assert model != null;
7474
this.model = model;
7575

76-
increaseRefCount(rt);
76+
if(rt == null)
77+
increaseRefCount(rt);
7778
}
7879

7980
public NeuronProvider(Model model, Neuron n, RefType rt) {

0 commit comments

Comments
 (0)