|
From: <pst...@us...> - 2011-08-08 00:14:01
|
Revision: 904
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=904&view=rev
Author: pstieber
Date: 2011-08-08 00:13:55 +0000 (Mon, 08 Aug 2011)
Log Message:
-----------
Added empty input line tests.
Modified Paths:
--------------
trunk/jazz/src/Configuration.cpp
Modified: trunk/jazz/src/Configuration.cpp
===================================================================
--- trunk/jazz/src/Configuration.cpp 2011-08-08 00:13:00 UTC (rev 903)
+++ trunk/jazz/src/Configuration.cpp 2011-08-08 00:13:55 UTC (rev 904)
@@ -869,7 +869,7 @@
break;
}
}
- else if (pVector && isdigit(InputLine[0]))
+ else if (pVector && !InputLine.empty() && isdigit(InputLine[0]))
{
// Read named entries.
@@ -985,7 +985,11 @@
::wxMessageBox(String, "Warning", wxOK);
}
}
- else if (pVector == 0 && !mBankTable.empty()&& isdigit(InputLine[0]))
+ else if (
+ pVector == 0 &&
+ !mBankTable.empty() &&
+ !InputLine.empty() &&
+ isdigit(InputLine[0]))
{
// Read bank table entries.
assert(0 <= BankIndex && BankIndex < mBankTable.size());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|