Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Basic UI] Frames generate errors with null items #1951

Closed
1 of 4 tasks
reyhard opened this issue Jul 5, 2023 · 3 comments · Fixed by openhab/openhab-core#3686
Closed
1 of 4 tasks

[Basic UI] Frames generate errors with null items #1951

reyhard opened this issue Jul 5, 2023 · 3 comments · Fixed by openhab/openhab-core#3686
Labels
bug Something isn't working

Comments

@reyhard
Copy link

reyhard commented Jul 5, 2023

Which UI are you reporting an issue for?

  • Basic UI
  • HABPanel
  • HABot
  • CometVisu

The problem

After upgrading from 4.0m2 to 4.0m4 I've noticed that Sitemap frames are producing following error when sitemap is rendered in either PC web browser or Android phone.

[ui.internal.items.ItemUIRegistryImpl] - Failed to retrieve item during widget rendering, item does not exist: Item 'null' could not be found in the item registry

Adding some random existing item to frame seems to "solve" this issue

Frame label="label" item=SomeRandomItemThatExist {

Expected behavior

No errors in the events.log

Steps to reproduce

Create sitemap with frames and then try to view it on i.e. phone.

Following sitemap should generate 3 error lines mentioned above

sitemap alarmclock label="Alarms" {
    Frame label="1" item=Thermostat_Automatic_Program  {
        Switch item=AlarmClock_Switch icon="screen" 
    }
    Frame label="2" {
        Text item=Phone_01_AlarmClockDate label="Alarm 1 [%s]" icon="time"
    }
    Frame label="3" {
        Text item=Phone_02_AlarmClockDate label="Alarm 2 [%s]" icon="time"
    }
}
@reyhard reyhard added the bug Something isn't working label Jul 5, 2023
@lolodomo
Copy link
Contributor

lolodomo commented Jul 5, 2023

It is probably a regression introduced last Sunday by either openhab/openhab-core#3644 or openhab/openhab-core#3635.
I will have a look.

@lolodomo
Copy link
Contributor

lolodomo commented Jul 5, 2023

Log level was changed from DEBUG to WARN in openhab/openhab-core#3644.
This change has to be reverted.

lolodomo added a commit to lolodomo/openhab-core that referenced this issue Jul 5, 2023
J-N-K pushed a commit to openhab/openhab-core that referenced this issue Jul 5, 2023
@lolodomo
Copy link
Contributor

lolodomo commented Jul 5, 2023

Closed by openhab/openhab-core#3686

@lolodomo lolodomo closed this as completed Jul 5, 2023
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this issue Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants