load_thy/after_load: explicit check of parent theories, which might have failed to join proofs -- avoid uninformative crash via Graph.UNDEF;
--- a/src/Pure/Thy/thy_info.ML Wed Aug 04 15:50:55 2010 +0200
+++ b/src/Pure/Thy/thy_info.ML Wed Aug 04 16:11:51 2010 +0200
@@ -238,8 +238,9 @@
fun after_load' () =
(after_load ();
NAMED_CRITICAL "Thy_Info" (fn () =>
- (change_thys (new_entry name parent_names (SOME deps, SOME theory));
- perform Update name)));
+ (map get_theory parent_names;
+ change_thys (new_entry name parent_names (SOME deps, SOME theory));
+ perform Update name)));
in (theory, after_load') end;