From 3e42fbbdf4ce2f040fb243114dcd298dfafbbd9b Mon Sep 17 00:00:00 2001 From: vshcherb Date: Thu, 29 May 2014 02:26:48 +0200 Subject: [PATCH] Fix validation --- OsmAnd/src/net/osmand/plus/osmo/OsMoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java b/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java index 07af2ae2ab..2f2119bc3e 100644 --- a/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java +++ b/OsmAnd/src/net/osmand/plus/osmo/OsMoService.java @@ -168,7 +168,7 @@ public class OsMoService implements OsMoReactor { public String getRegisteredUserName() { SessionInfo si = getCurrentSessionInfo(); - if(si != null) { + if(si != null && si.username != null && si.username.length() > 0) { return si.username; } return null;