Issue Details (XML | Word | Printable)

Key: UBA-7646
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Janak Mulani
Reporter: Janak Mulani
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ULCBase

Having a RowSorter on a ULCTable with null TableHeader results in NPE on the client side.

Created: 06/Jan/09 10:53 AM   Updated: 20/Jan/09 05:14 PM
Component/s: None
Affects Version/s: UltraLightClient '08 Update 1
Fix Version/s: UltraLightClient '08 Update 2


 Description  « Hide
The following snippet demonstrates the problem:
import com.ulcjava.base.application.AbstractApplication;
import com.ulcjava.base.application.ULCFrame;
import com.ulcjava.base.application.ULCScrollPane;
import com.ulcjava.base.application.ULCTable;
import com.ulcjava.base.development.DevelopmentRunner;

public class PR7646 extends AbstractApplication {
    
    public void start() {
        final ULCTable table = new ULCTable(new Object[][] {{"Row1"}}, new String[] {"Column1"});
        table.setAutoCreateRowSorter(true);
        
        table.setTableHeader(null);
        

        ULCScrollPane scp = new ULCScrollPane(table);
        
        ULCFrame frame = new ULCFrame("PR7646");
        frame.setDefaultCloseOperation(ULCFrame.TERMINATE_ON_CLOSE);
        frame.add(scp);
        frame.setSize(300, 300);
        frame.setVisible(true);
       
    }
    
    public static void main(String[] args) {
        DevelopmentRunner.setApplicationClass(PR7646.class);
        DevelopmentRunner.run();
    }
}


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.