[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport
Ralf Habacker
ralf.habacker at gmail.com
Wed Nov 30 11:29:09 UTC 2011
SVN commit 1266696 by habacker:
crash fix
in case the path does not fit into the package hierachy we cannot check the imports
Bug: 200721
M +5 -0 javaimport.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/javaimport.cpp #1266695:1266696
@@ -189,6 +189,11 @@
QStringList package = m_currentPackage.split( '.' );
int dirsInPackageCount = package.size();
+ // in case the path does not fit into the package hierachy
+ // we cannot check the imports
+ if (dirsInPackageCount >= file.size())
+ return NULL;
+
for (int count=0; count < dirsInPackageCount; ++count ) {
// pop off one by one the directories, until only the source root remains
//
More information about the umbrello-devel
mailing list