[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/29770] New: NPE in java.beans.SimpleBeanInfo.loadImage(St

From: volker dot berlin at goebel-clan dot de
Subject: [Bug classpath/29770] New: NPE in java.beans.SimpleBeanInfo.loadImage(String)
Date: 8 Nov 2006 20:35:19 -0000

The method java.beans.SimpleBeanInfo.loadImage(String) throw a NPE if the image
resource was not found. It should look more like:

public Image loadImage(String location) {
  URL url = getClass().getResource(location);
  if(url == null){
    return null;
  return Toolkit.getDefaultToolkit().getImage(url);

           Summary: NPE in java.beans.SimpleBeanInfo.loadImage(String)
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: volker dot berlin at goebel-clan dot de


reply via email to

[Prev in Thread] Current Thread [Next in Thread]