1. Click
  2. CLK-32

Null values in Column renderTableData raise exception


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
    • Environment:
      Click-0.15, all enironments


      I have a row in a Table that represents an object instance (eg User). Once of the object attributes (role) is another object. If the User does not have a Role, I get an exception - 'IllegalArgumentException on HTMLStringBuffer - null value parameter' (line 93 in HTMLStringBuffer)

      I think the problem is around line 393 in A test for a null value before doing a buffer.append() would fix this

      I'm subclassing Column right now to override the renderTableData method, which seems to work. The pertinent lines of code are:

      (replace line 393 with)
      if (columnValue != null)

      { buffer.append(columnValue); }

      Or should HTMLStringBuffer be more forgiving? Or both?


        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        15h 20m 1 Malcolm Edgar 03/Nov/05 01:30
        In Progress In Progress Resolved Resolved
        13h 27m 1 Malcolm Edgar 03/Nov/05 14:58
        Resolved Resolved Closed Closed
        33d 11h 33m 1 Malcolm Edgar 07/Dec/05 02:31
        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]
        Malcolm Edgar made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Malcolm Edgar made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Malcolm Edgar added a comment -

        Fix checked into CVS.

        Will be available in release 0.16

        Malcolm Edgar added a comment - Fix checked into CVS. Will be available in release 0.16
        Malcolm Edgar made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Geoff Hopson created issue -


          • Assignee:
            Malcolm Edgar
            Geoff Hopson
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: