Index: trunk/src/plugins/io_easyeda/read_low_std.c =================================================================== --- trunk/src/plugins/io_easyeda/read_low_std.c (revision 10650) +++ trunk/src/plugins/io_easyeda/read_low_std.c (revision 10651) @@ -28,6 +28,7 @@ #include #include +#include #include @@ -927,7 +928,10 @@ long easyeda_str2name(const char *str) { - return easy_sphash(str); + long res = easy_sphash(str); + if (res < 0) + rnd_message(RND_MSG_ERROR, "Internal error: missing easyeda keyword '%s'\n", str); + return res; } gdom_node_t *easystd_low_sch_parse(FILE *f) @@ -959,7 +963,10 @@ void easyeda_dump_tree(FILE *f, gdom_node_t *tree) { - gdom_dump(f, tree, 0, name2str); + if (tree != NULL) + gdom_dump(f, tree, 0, name2str); + else + fprintf(f, "\n"); } gdom_node_t *easystd_low_parse(FILE *f)