nguyenquanghai1993 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

Selection does not work with negative values #302

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

xxx.items
---------
Number WPHeizkurvenabweichung   "WP Heizkurvenabweichung"       <smiley>        
(Waermepumpe)   { exec=">[50:/usr/local/luxtronik/lux4openhab.pl heizkurve 50] 
>[-5:/usr/local/luxtronik/lux4openhab.pl heizkurve -5] 
<[/usr/local/luxtronik/lux4openhab.pl heizkurve:60000:REGEX((.*?))]" }

xxx.sitemap
------------
Selection item=WPHeizkurvenabweichung  label="Heizkurvenabweichung" 
mappings=[50='5°C', -5='-0,5°C' ]

=> The selection will not show up on the Gui. Trying to access it through the 
GUI results in the following runtime error:

21:30:20.042 WARN  o.e.j.servlet.ServletHandler[:553] - /openhab.app
java.lang.NullPointerException: null
        at java.lang.String.replace(String.java:2228)

What version of the product are you using? On what operating system?
Openhab 1.2 on Debian 6.0.5

Original issue reported on code.google.com by thomas.h...@gmail.com on 14 May 2013 at 7:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Could you provide a bit more Stacktrace?

Original comment by teichsta on 12 Jul 2013 at 3:14

GoogleCodeExporter commented 8 years ago

Original comment by teichsta on 13 Aug 2013 at 4:10

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 30 Aug 2013 at 8:31

GoogleCodeExporter commented 8 years ago
Issue 484 has been merged into this issue.

Original comment by kai.openhab on 7 Dec 2013 at 10:17

GoogleCodeExporter commented 8 years ago
Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=423515

Original comment by kai.openhab on 7 Dec 2013 at 10:18

GoogleCodeExporter commented 8 years ago
fixed with https://github.com/openhab/openhab/pull/2397

Original comment by xthirtyn...@gmail.com on 2 Apr 2015 at 4:31