mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-13 08:14:20 +01:00
Exception when using SortedDirectoryIterator #1926
This commit is contained in:
parent
31dfdb5b51
commit
888e193511
@ -78,7 +78,13 @@ void SortedDirectoryIterator::scan()
|
|||||||
DirectoryIterator end_it;
|
DirectoryIterator end_it;
|
||||||
while (*this != end_it)
|
while (*this != end_it)
|
||||||
{
|
{
|
||||||
if ((*this)->isDirectory())
|
bool isDir = false;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
isDir = (*this)->isDirectory();
|
||||||
|
}
|
||||||
|
catch (...) { }
|
||||||
|
if (isDir)
|
||||||
_directories.push_back(_path.toString());
|
_directories.push_back(_path.toString());
|
||||||
else
|
else
|
||||||
_files.push_back(_path.toString());
|
_files.push_back(_path.toString());
|
||||||
|
@ -260,7 +260,7 @@ void NumberParserTest::testParseError()
|
|||||||
failmsg("must throw SyntaxException");
|
failmsg("must throw SyntaxException");
|
||||||
}
|
}
|
||||||
catch (SyntaxException&) {}
|
catch (SyntaxException&) {}
|
||||||
|
|
||||||
#if defined(POCO_HAVE_INT64)
|
#if defined(POCO_HAVE_INT64)
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -286,7 +286,7 @@ void NumberParserTest::testParseError()
|
|||||||
NumberParser::parseHex64("12345z");
|
NumberParser::parseHex64("12345z");
|
||||||
failmsg("must throw SyntaxException");
|
failmsg("must throw SyntaxException");
|
||||||
} catch (SyntaxException&) { }
|
} catch (SyntaxException&) { }
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
NumberParser::parseHex64(format("123%c45", ts));
|
NumberParser::parseHex64(format("123%c45", ts));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user