Skip to content

Commit

Permalink
TileSource.OpenResult: allow null error messages (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 authored May 12, 2021
1 parent d4b7e34 commit c508bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vtm/src/org/oscim/tiling/TileSource.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016-2018 devemux86
* Copyright 2016-2021 devemux86
* Copyright 2017 Andrey Novikov
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
Expand Down Expand Up @@ -204,11 +204,11 @@ public static class OpenResult {
private final boolean success;

/**
* @param errorMessage a textual message describing the error, must not be null.
* @param errorMessage a textual message describing the error.
*/
public OpenResult(String errorMessage) {
if (errorMessage == null) {
throw new IllegalArgumentException("error message must not be null");
errorMessage = "error";
}

this.success = false;
Expand Down

0 comments on commit c508bde

Please sign in to comment.