load_thy/after_load: explicit check of parent theories, which might have failed to join proofs -- avoid uninformative crash via Graph.UNDEF;
authorwenzelm
Wed, 04 Aug 2010 16:11:51 +0200
changeset 38147 2b08a96a283e
parent 38146 a5916f2b6791
child 38148 d2f3c8d4a89f
load_thy/after_load: explicit check of parent theories, which might have failed to join proofs -- avoid uninformative crash via Graph.UNDEF;
src/Pure/Thy/thy_info.ML
--- 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;