Fix NPE
This commit is contained in:
parent
b992939053
commit
a92550e1ca
1 changed files with 2 additions and 1 deletions
|
@ -214,7 +214,8 @@ public class BasicEditPoiFragment extends BaseOsmAndFragment
|
|||
if (!data.isInEdit()) {
|
||||
String openingHoursString = openingHours.toString();
|
||||
if (!TextUtils.isEmpty(openingHoursString)) {
|
||||
if(!OpeningHoursParser.parseOpenedHoursHandleErrors(openingHours.getOriginal()).toString().equals(openingHoursString)) {
|
||||
if(openingHours.getOriginal() == null ||
|
||||
!OpeningHoursParser.parseOpenedHoursHandleErrors(openingHours.getOriginal()).toString().equals(openingHoursString)) {
|
||||
data.putTag(OSMSettings.OSMTagKey.OPENING_HOURS.getValue(),
|
||||
openingHoursString);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue