Skip to content

Commit

Permalink
Fix stack problem with Sun/Flexi Crypto Providers
Browse files Browse the repository at this point in the history
  • Loading branch information
simlei committed Oct 28, 2020
1 parent 8b4ef4d commit 2ca1760
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,11 @@ public void pushFlexiProviderPromotion() {
* see also: {@link #pushFlexiProviderPromotion()}
*/
public void popCryptoProviderPromotion() {
if (providerStack.size() > 0) {
this.providerStack.remove(providerStack.size()-1);
}
if (providerStack.size() == 0) {
this.controllers.forEach(c -> c.setProviders__sunPromoted());
} else {
this.providerStack.remove(providerStack.size()-1);
}
}

Expand Down

0 comments on commit 2ca1760

Please sign in to comment.