[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] InlineFlow.setBorder not accepting null argument

The comment for the method InlineFlow.setBorder says that passing in a null value for the new border is valid. However the code for that method is:

public void setBorder(Border border) {
  if (border instanceof FlowBorder)
    super.setBorder(border);
  else
    throw new RuntimeException("Border must be an instance of FlowBorder");
}

This code throws an error when passed a null argument.

Is this a bug? I would really like to remove a border of a TextFlow, but I can't do this as it currently stands.

thanks,
--a