Commit 1d882505 authored by Tobias Wich's avatar Tobias Wich
Browse files

Add branch for getType function acting correctly when stack has not loaded yet

parent 5f8a625b
......@@ -113,12 +113,16 @@ public class PCSCFactory implements org.openecard.common.ifd.scio.TerminalFactor
@Override
public String getType() {
return terminalFactory.getType();
if (terminalFactory != null) {
return terminalFactory.getType();
} else {
return "PC/SC";
}
}
@Override
public SCIOTerminals terminals() {
if (initLock.isDone()) {
if (terminalFactory != null) {
return new PCSCTerminals(this);
} else {
// dummy for use while the initialization is not working properly
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment