a little tolerance for sloppy models

This commit is contained in:
Julian Dolby 2018-07-04 15:46:06 -04:00
parent bc0309b5ba
commit ef89dc5345
1 changed files with 5 additions and 3 deletions

View File

@ -79,9 +79,11 @@ public class ReferenceCleanser {
ShrikeClass c = (ShrikeClass) klass;
c.clearSoftCaches();
} else {
for (IMethod m : klass.getDeclaredMethods()) {
if (m instanceof ShrikeCTMethod) {
((ShrikeCTMethod)m).clearCaches();
if (klass.getDeclaredMethods() != null) {
for (IMethod m : klass.getDeclaredMethods()) {
if (m instanceof ShrikeCTMethod) {
((ShrikeCTMethod)m).clearCaches();
}
}
}
}