]> err.no Git - sope/commitdiff
fixed a minor issue
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 14 Sep 2005 12:28:08 +0000 (12:28 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 14 Sep 2005 12:28:08 +0000 (12:28 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1105 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/WEExtensions/ChangeLog
sope-appserver/WEExtensions/Version
sope-appserver/WEExtensions/WETableMatrixLabel.m

index 70af60d2ad5e9d141947135f046d9a5e991447b4..21b9674c8075384f76471f1dd90552bfc4d51e34 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-09  Helge Hess  <helge.hess@skyrix.com>
+
+       * WETableMatrixLabel.m: avoid an edge condition when the position
+         binding is missing (v4.5.82)
+
 2005-08-27  Helge Hess  <helge.hess@opengroupware.org>
 
        * WETableView: added common.h file to support PCH (not required for
index b5e198651dc481fd981477cbde62358cb744f88a..392a00ce61cc32026dd8a35b3a6b37c11c37ec25 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=81
+SUBMINOR_VERSION:=82
 
 # v4.5.76 requires libNGObjWeb v4.5.176
 # v4.5.75 requires libNGObjWeb v4.5.174
index 29067bcad9df1ee9d5a2dfb9e83dce61a1742c61..3e4f3052d8404dfe57727560af71f09f8ec2d3fc 100644 (file)
@@ -101,8 +101,11 @@ static NSString *retStrForInt(int i) {
   
   pos = [self->position stringValueInComponent:[_ctx component]];
   
-  if ((tmp = [_ctx valueForKey:@"WETableMatrix_Query"])) {
-    [tmp addObject:pos];
+  if ((tmp = [_ctx valueForKey:@"WETableMatrix_Query"]) != nil) {
+    if (pos == nil)
+      [self errorWithFormat:@"got no position: %@", self->position];
+    else
+      [tmp addObject:pos];
     return;
   }