Closed GoogleCodeExporter closed 8 years ago
I can confirm I am seeing the same thing (in 1.4.0 SNAPSHOT). See discussion
here (https://groups.google.com/forum/#!topic/openhab/3OHBFnliUe8) for details.
Original comment by ben.jone...@gmail.com
on 9 Oct 2013 at 9:33
Maybe this is related to this bug:
I have two rules which are using equally named local (randomOffset zn this
exampe) and the same trigger in two different rules files. Whenever these rules
are triggered I get a null pointer exception. It seems as if this exception is
triggered by the rule loaded last.
Everything seems to be fine when the rules are in the same rules file!
java.lang.NullPointerException: null
at org.openhab.model.script.lib.NumberExtensions.operator_multiply(NumberExtensions.java:62)
at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter.invokeOperation(XbaseInterpreter.java:729)
at org.eclipse.xtext.xbase.interpreter.impl.XbaseInterpreter._featureCallOperation(XbaseInterpreter.java:713)
rule "Test Random Offset A"
when
Item Test_Offset changed from OFF to ON
then
var int randomOffset
randomOffset = (Math::random()*LampsTestInterval).intValue()
logInfo("test random offset A", "Offset: " + randomOffset)
end
rule "Test Random Offset B"
when
Item Test_Offset changed from OFF to ON
then
var int randomOffset
randomOffset = (Math::random()*LampsTestInterval).intValue()
logInfo("test random offset B", "Offset: " + randomOffset)
end
Original comment by estan...@gmx.de
on 12 Oct 2013 at 2:04
Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=423532
Original comment by kai.openhab
on 8 Dec 2013 at 2:46
Original issue reported on code.google.com by
cyril.ja...@gmail.com
on 8 Oct 2013 at 11:48