Permalink
Browse files

fixed possible NPE, as "m" can only be null at this position

  • Loading branch information...
1 parent 91f305e commit 1a5c9bf7a375c084ba4314c5adab7bced33feadb @jetztgradnet jetztgradnet committed Sep 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/erjang/ERT.java
@@ -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];

0 comments on commit 1a5c9bf

Please sign in to comment.