mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
getCurrentState() should return null when on root element.
This commit is contained in:
@@ -72,6 +72,11 @@ public class DocumentHandler extends DefaultHandler {
|
||||
* @return The current element state.
|
||||
*/
|
||||
private DocumentHandlerState getCurrentState() {
|
||||
|
||||
// If no state, return null
|
||||
if (stack.isEmpty())
|
||||
return null;
|
||||
|
||||
return stack.getLast();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user