From 8fdd3b1b94adf07800687d7c2d100ecc278f87bc Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 8 Dec 2010 18:26:32 +0000 Subject: Fix qpid-tool to not attempt to display parially-learned schemata. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1043575 13f79535-47bb-0310-9956-ffa450edef68 --- tools/src/py/qpid-tool | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tools/src/py/qpid-tool b/tools/src/py/qpid-tool index 4b170d109c..e7c0231b96 100755 --- a/tools/src/py/qpid-tool +++ b/tools/src/py/qpid-tool @@ -296,13 +296,14 @@ class QmfData(Console): for key in keys: kind = "object" schema = self.session.getSchema(key) - if schema.kind == SchemaClass.CLASS_KIND_EVENT: - kind = "event" - if schema.kind == SchemaClass.CLASS_KIND_TABLE: - # - # Don't display event schemata. This will be a future feature. - # - rows.append((package, key.getClassName(), kind)) + if schema: + if schema.kind == SchemaClass.CLASS_KIND_EVENT: + kind = "event" + if schema.kind == SchemaClass.CLASS_KIND_TABLE: + # + # Don't display event schemata. This will be a future feature. + # + rows.append((package, key.getClassName(), kind)) self.disp.table("QMF Classes:", ("Package", "Name", "Kind"), rows) def schemaTable(self, text): -- cgit v1.2.1