Fix null case.
This commit is contained in:
parent
ee8e4d4be2
commit
bb3d9327bd
1 changed files with 21 additions and 1 deletions
|
@ -94,7 +94,27 @@ public class URLPresenter extends StringPresenter
|
|||
{
|
||||
String result;
|
||||
|
||||
if (this.source == null)
|
||||
{
|
||||
result = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = this.source.toString();
|
||||
}
|
||||
|
||||
//
|
||||
return (result);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public URL getURL()
|
||||
{
|
||||
URL result;
|
||||
|
||||
result = this.source;
|
||||
|
||||
//
|
||||
return (result);
|
||||
|
|
Loading…
Reference in a new issue