Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3148

Possible infinite loop in Listbox.service()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.1
    • None
    • None
    • Security Level: Jimmy
    • None

      In Listbox.service() around line 3658, the following structure may result in an infinite loop, if smodel == null:

      while (start >= 0 && end >= 0 && start <= end) {
      	//ZK-2804: add those items not in _items as selected
      	if (smodel != null) {
      		Object ele = _model.getElementAt(start++);
      		if (ctrl == null || ctrl.isSelectable(ele))
      			smodel.addToSelection(ele);
      	}
      }
      

            DevChu DevChu
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m