Project

General

Profile

Actions

Bug #13503

closed
RP RP

NPE deleting from WTemplate parent with empty-bound variables

Bug #13503: NPE deleting from WTemplate parent with empty-bound variables

Added by Raf Pauwels over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
02/07/2025
Due date:
% Done:

100%

Estimated time:

Description

Deleting a widget using WTemplate.removeWidget() fails with a NullPointerException when:

  • There are empty-bound variables in the template instance
  • The empty-bound variables are iterated over before the widget to be removed is found

This is because bindEmpty() sets the map value to null.

This can be resolved with a check, or the function can be modernized using streams.

RP Updated by Raf Pauwels over 1 year ago Actions #1

  • Status changed from InProgress to Review
  • Assignee deleted (Raf Pauwels)

MV Updated by Matthias Van Ceulebroeck over 1 year ago Actions #2

  • Target version changed from 4.11.2 to 604

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #3

  • Assignee set to Matthias Van Ceulebroeck
  • Target version changed from 604 to 4.12.1

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #4

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Raf Pauwels
  • % Done changed from 0 to 100

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #5

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom