We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a53e65 + e5cc263 commit 4f427baCopy full SHA for 4f427ba
1 file changed
app/src/main/java/org/openimis/imispolicies/usecase/Login.java
@@ -53,6 +53,9 @@ public Login(
53
54
@WorkerThread
55
public void execute(@NonNull String username, @NonNull String password) throws Exception {
56
+ if (Global.getGlobal().getOfficerCode() == null) {
57
+ Global.getGlobal().setOfficerCode(username);
58
+ }
59
String officerCode = Global.getGlobal().getOfficerCode();
60
if (officerCode == null) {
61
throw new IllegalStateException("OfficerCode should not be null on login");
0 commit comments