Project

General

Profile

Actions

Bug #13503

open

NPE deleting from WTemplate parent with empty-bound variables

Added by Raf Pauwels 15 days ago. Updated 3 days ago.

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

0%

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.

Actions #1

Updated by Raf Pauwels 15 days ago

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

Updated by Matthias Van Ceulebroeck 3 days ago

  • Target version changed from 4.11.2 to 4.11.4
Actions

Also available in: Atom PDF