Skip to content

[Bug]: NPE for theme when accessing index page #3331

@jobannon

Description

@jobannon

What happened?

Observed, but reproduction steps still not determined.

Technical cause:
theme is null if we can't figure out what tenant and/or application you belong to

A FreeMarker exception occurred.

Exception:
FreeMarker template error:
The following has evaluated to null or missing:
==> theme  [in template "templates/index.ftl" at line 14, column 11]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use [#if myOptionalVar??]when-present[#else]when-missing[/#if]. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if theme.type != "simple"  [in template "templates/index.ftl" at line 14, column 6]
	~ Reached through: #nested  [in template "templates/_helpers.ftl" in macro "body" at line 142, column 7]
	~ Reached through: @helpers.body  [in template "templates/index.ftl" at line 9, column 3]
	~ Reached through: #nested  [in template "templates/_helpers.ftl" in macro "html" at line 33, column 3]
	~ Reached through: @helpers.html  [in template "templates/index.ftl" at line 7, column 1]

Version

1.61.2 and 1.62.1 (two different customers)

Affects Versions

No response

Alternatives / Workarounds

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions