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

Open a bugzilla. We can fix this in 3.2.

"Andrew Eisenberg" <andrew_NOSPAM_@xxxxxxxxxxxx> wrote in message 
news:dti3re$l04$1@xxxxxxxxxxxxxxxxxxxx
> 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