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

Possible infinite loop in Listbox.service()

    XMLWordPrintable

Details

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

    Description

      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);
      	}
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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