There is 1 update.
 
 
Guided Tour / cid:jira-generated-image-avatar-ca11796e-eaf2-407e-9792-f01c91e896f6 GUIDEDTOUR-11 Open

isActive property type causes NPE

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-24dfa310-c707-4e70-87e1-1b0c81c4a3ba Changes by Brassat Alexandru on 15/Jun/26 11:59
 
Description: On a fresh 18.3.0 instance, install the GuidedTour app (and disable the existing Tour app).

When rendering the GuidedTour widget, an error message is shown. In the instance logs, this appears:
{code:java}
2026-06-11 16:18:43,650 [qtp1025309396-253 - http://localhost:8090/xwiki/rest/guidedTour/tours] ERROR o.x.c.g.i.DefaultToursResource - Internal error: Tour API: retrieving all tours. 
java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "org.apache.solr.common.SolrDocument.getFirstValue(String)" is null
    at wiki:xwiki//org.xwiki.contrib.guidedtour.internal.ToursManager.getAllTours(ToursManager.java:138)
    at wiki:xwiki//org.xwiki.contrib.guidedtour.internal.DefaultToursResource.lambda$getAvailableTours$0(DefaultToursResource.java:52)
    at wiki:xwiki//org.xwiki.contrib.guidedtour.internal.AbstractGuidedTourResource.execute(AbstractGuidedTourResource.java:74)
    at wiki:xwiki//org.xwiki.contrib.guidedtour.internal.DefaultToursResource.getAvailableTours(DefaultToursResource.java:51)
    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103){code}
The isActive property is
apparently a stored as an int , when importing the tour pages through the Extension Manager (they're not a boolean properties as expected ) .

Saving a task page and editing the isActive field will switch back to using a boolean field for the solr index, thus fixing the problem for that task.

 

 

TourProperty.java could be changed like this:
{noformat}
IS_ACTIVE("isActive", "int"){noformat}
Or the property could be forced to be boolean somehow in solr, idk how.

 

The app used to work fine, I'm not sure what changed.