Skip to content

Commit

Permalink
fixed possible NPE, as "m" can only be null at this position
Browse files Browse the repository at this point in the history
  • Loading branch information
jetztgradnet committed Sep 26, 2011
1 parent 91f305e commit 1a5c9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/erjang/ERT.java
Expand Up @@ -626,7 +626,7 @@ public static EFun resolve_fun(EObject mod, EObject fun, int arity) {

final EFun pfun = EModuleManager.resolve(new FunID(pmod, f, arity+1));

return EFun.get_fun_with_handler(m.toString(), f.toString(), arity, new EFunHandler() {
return EFun.get_fun_with_handler(pmod.toString(), f.toString(), arity, new EFunHandler() {
@Override
public EObject invoke(EProc proc, EObject[] args) throws Pausable {
EObject[] real_args = new EObject[args.length+1];
Expand Down

0 comments on commit 1a5c9bf

Please sign in to comment.