Allows a valid location to be set. Fixes #1579.

Credit to tuskiomi for discovering this issue.
This commit is contained in:
Jeremy Wood 2015-06-10 13:46:38 -04:00
parent c37dd803c8
commit 28da4aac2f
1 changed files with 1 additions and 5 deletions

View File

@ -184,11 +184,7 @@ public class ExactDestination implements MVDestination {
* @param location The {@link Location}.
*/
public void setDestination(Location location) {
if (location != null) {
this.location = location;
this.isValid = true;
}
this.isValid = false;
this.isValid = (this.location = location) != null;
}
/**