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

NPE Listbox cell.detach()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Normal Normal
    • None
    • 8.0.0, 8.0.1
    • Components
    • None
    • ZK 8.0.1 S3

      Get a NPE in Listbox.java

      8.0.1.FL.20160106

      / package /@SuppressWarnings(

      { "unchecked", "rawtypes" }

      )
      void render(Listitem item, int index) throws Throwable {
      if (item.isLoaded())

      { return; // nothing to do }

      if (!rendered && (renderer instanceof RendererCtrl))

      { ((RendererCtrl) _renderer).doTry(); _ctrled = true; }

      final Listcell cell = (Listcell) item.getFirstChild();
      if (!(_renderer instanceof ListitemRendererExt)

      (((ListitemRendererExt) _renderer).getControls() & ListitemRendererExt.DETACH_ON_RENDER) != 0) { // detach // (default) Zeile 2753: cell.detach(); }

      Seems it comes when we try to render an object as null.???

      Does a
      if (cell != null)

      { cell.detach(); }

      solves this.

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

              Created:
              Updated:
              Resolved: