IDEMPIERE-6098 - Wrong Null Check in Dashboard Controller (#2304)

This commit is contained in:
Peter Takács 2024-04-09 15:12:37 +02:00 committed by Carlos Ruiz
parent bca41fb13d
commit 4ac98a630a
1 changed files with 1 additions and 1 deletions

View File

@ -740,7 +740,7 @@ public class DashboardController implements EventListener<Event> {
HtmlBasedComponent parentComponent, List<Component> components, Component zulComponent, ServerPushTemplate spt) throws Exception { HtmlBasedComponent parentComponent, List<Component> components, Component zulComponent, ServerPushTemplate spt) throws Exception {
// HTML content // HTML content
String htmlContent = dashboardContent.get_ID() > 0 ? dashboardContent.get_Translation(MDashboardContent.COLUMNNAME_HTML) : null; String htmlContent = dashboardContent.get_ID() > 0 ? dashboardContent.get_Translation(MDashboardContent.COLUMNNAME_HTML) : null;
if(htmlContent != null) if(!Util.isEmpty(htmlContent))
{ {
StringBuilder result = new StringBuilder("<html><head>"); StringBuilder result = new StringBuilder("<html><head>");