diff host/libcdl/config.cxx @ 108:ff3f181b64bd ecos-sw-2000-07-04

Merge from eCos master repository on 2000-07-04-20:42:44-BST
author jlarmour
date Tue, 04 Jul 2000 20:17:21 +0000
parents b15c60e34c84
children 6ed91473a1cd
line wrap: on
line diff
--- a/host/libcdl/config.cxx
+++ b/host/libcdl/config.cxx
@@ -395,6 +395,9 @@ CdlConfigurationBody::change_package_ver
     }
     // For now it is illegal to change the version of package that has
     // not been loaded yet
+    if (0 == package) {
+        throw CdlInputOutputException(std::string("Cannot change version of \"") + name + "\" , this package is not loaded");
+    }
     CYG_ASSERT_CLASSC(package);
     
     this->change_package_version(transaction, package, new_version, error_fn, warn_fn, limbo);