Author: rmottola
Date: Thu Mar 17 16:21:50 2016
New Revision: 39558
URL: http://svn.gna.org/viewcvs/gnustep?rev=39558&view=rev
Log:
make more robust and warn if called empty
Modified:
apps/projectcenter/branches/ptyview_with_pipes/Framework/PCBundleManager.m
Modified:
apps/projectcenter/branches/ptyview_with_pipes/Framework/PCBundleManager.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/branches/ptyview_with_pipes/Framework/PCBundleManager.m?rev=39558&r1=39557&r2=39558&view=diff
==============================================================================
--- apps/projectcenter/branches/ptyview_with_pipes/Framework/PCBundleManager.m
(original)
+++ apps/projectcenter/branches/ptyview_with_pipes/Framework/PCBundleManager.m
Thu Mar 17 16:21:50 2016
@@ -129,6 +129,7 @@
reqBundlesInfo = [self infoForBundlesType:extension];
enumerator = [[reqBundlesInfo allKeys] objectEnumerator];
+ infoTable = nil;
while ((bundlePath = [enumerator nextObject]))
{
infoTable = [reqBundlesInfo objectForKey:bundlePath];
@@ -167,6 +168,7 @@
NSString *bundlePath;
NSDictionary *infoTable;
+ infoTable = nil;
while ((bundlePath = [enumerator nextObject]))
{
infoTable = [reqBundlesInfo objectForKey:bundlePath];
@@ -235,6 +237,7 @@
if (!className)
{
+ NSLog(@"Bundle for class called with empty className");
return nil;
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs