Skip to content

Commit

Permalink
guard against npes, due to both Akka and Pekko not usually used together
Browse files Browse the repository at this point in the history
  • Loading branch information
mebigfatguy committed Dec 3, 2023
1 parent 52fd735 commit 20fd195
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public void sawOpcode(int seen) {
if ("route".equals(methodName) || "concat".equals(methodName)) {
String clsName = getClassConstantOperand();
JavaClass cls = Repository.lookupClass(clsName);
if (cls.instanceOf(akkaRouteDirectivesClass) || cls.instanceOf(pekkoRouteDirectivesClass)) {
if ((hasAkka && cls.instanceOf(akkaRouteDirectivesClass))
|| (hasPekko && cls.instanceOf(pekkoRouteDirectivesClass))) {
OpcodeStack.Item itm = null;
int bogusSize = -1;
if ("route".equals(methodName)) {
Expand Down

0 comments on commit 20fd195

Please sign in to comment.