Allows a valid location to be set. Fixes #1579.
Credit to tuskiomi for discovering this issue.
This commit is contained in:
parent
c37dd803c8
commit
28da4aac2f
|
@ -184,11 +184,7 @@ public class ExactDestination implements MVDestination {
|
||||||
* @param location The {@link Location}.
|
* @param location The {@link Location}.
|
||||||
*/
|
*/
|
||||||
public void setDestination(Location location) {
|
public void setDestination(Location location) {
|
||||||
if (location != null) {
|
this.isValid = (this.location = location) != null;
|
||||||
this.location = location;
|
|
||||||
this.isValid = true;
|
|
||||||
}
|
|
||||||
this.isValid = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue