java.lang.NullPointerException when navigating to a view in a wizard
Modified on: Fri, 17 Nov 2023 12:07 PMOriginal Publishing Date:
2020-01-22
2020-01-22
Symptoms
My sandbox was upgraded to POA 5.5.2+ and now when I try to navigate to a step in a wizard i get java.lang.NullPointerException.
Cause
Wizard declaration in APP-META.xml is not supported, all the logic should be implemented via widgets (aps/WizardData and aps/WizardControl).
Resolution
Remove wizard and step from APP-META.xml.
Before:
<view id="servers" label="Servers">
<wizard id="new">
<step id="step1-new" label="Step 1 label">
<view id="server.new-1" label="Edit (step 1)">
<controls>
<next/>
</controls>
</view>
</step>
<step id="step2-new" label="Step2">
<view id="server.new-2" label="Edit (step 2)">
<controls>
<prev/>
<next/>
</controls>
</view>
</step>
</view>
After:
<view id="servers" label="Servers">
<view id="server.new-1" label="Edit (step 1)">
<controls>
<next/>
</controls>
</view>
<view id="server.new-2" label="Edit (step 2)">
<controls>
<prev/>
<next/>
</controls>
</view>
</view>