Bug 757

Summary: Exception in thread "main" java.lang.Error
Product: Hospital-Managment Reporter: Crist <cdragoper2-c>
Component: BugAssignee: 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
Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
	Type mismatch: cannot convert from boolean to Admin


Exception arise when trying to acces admin option (option 1 at main portal)
Comment 1 Crist 2022-12-05 22:13:16 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;
    }