| Summary: | Exception in thread "main" java.lang.Error | ||
|---|---|---|---|
| Product: | Hospital-Managment | Reporter: | Crist <cdragoper2-c> |
| Component: | Bug | Assignee: | Crist <cdragoper2-c> |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | ||
| Priority: | --- | ||
| Version: | 1.1 | ||
| Hardware: | PC | ||
| OS: | Windows | ||
|
Description
Crist
2022-12-05 22:10:35 HKT
Issue: dev forgot to change getInstance method at Admin class. It was returning a boolean (used for debbuging) and it should return the current Admin instance.
Code changed from:
public static boolean getInstance()
{
boolean tryVariable = true;
return tryVariable;
}
to:
private static Admin inst = new Admin();
public static Admin getInstance()
{
return inst;
}
|