Examples of errors detected by the V6036 diagnostic
V6036. The value from the uninitialized optional is used.
XMage
V6036 The value from the uninitialized 'selectUser' optional is used. Session.java(227)
public String connectUserHandling(String userName, String password)
{
....
if (!selectUser.isPresent()) { // user already exists
selectUser = UserManager.instance.getUserByName(userName);
if (selectUser.isPresent()) {
User user = selectUser.get();
....
}
}
User user = selectUser.get();
....
}