nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a66ddc
)
modelbuilder: do not crash if nclassdef.mclass is not defined
author
Jean Privat
<jean@pryen.org>
Mon, 22 Oct 2012 18:22:08 +0000
(14:22 -0400)
committer
Jean Privat
<jean@pryen.org>
Mon, 22 Oct 2012 20:49:40 +0000
(16:49 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/modelbuilder.nit
patch
|
blob
|
history
diff --git
a/src/modelbuilder.nit
b/src/modelbuilder.nit
index
d5736e8
..
130088a
100644
(file)
--- a/
src/modelbuilder.nit
+++ b/
src/modelbuilder.nit
@@
-477,7
+477,8
@@
class ModelBuilder
do
var mmodule = nmodule.mmodule.as(not null)
var objectclass = try_get_mclass_by_name(nmodule, mmodule, "Object")
- var mclass = nclassdef.mclass.as(not null)
+ var mclass = nclassdef.mclass
+ if mclass == null then return # Skip error
#var mclassdef = nclassdef.mclassdef.as(not null)
var names = new Array[String]