mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Fix for PR 46303: Exception when selecting Debug... menu.
Check if the string passed to the 'getCommonSourceLocationsFromMemento' method is not empty.
This commit is contained in:
parent
df634f2e75
commit
90285517de
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-11-07 Mikhail Khodjaiants
|
||||||
|
Fix for PR 46303: Exception when selecting Debug... menu.
|
||||||
|
Check if the string passed to the 'getCommonSourceLocationsFromMemento' method is not empty.
|
||||||
|
* SourceUtils.java
|
||||||
|
|
||||||
2003-11-05 Mikhail Khodjaiants
|
2003-11-05 Mikhail Khodjaiants
|
||||||
'getCDIBreakpointFile' returns wrong file for address breakpoints.
|
'getCDIBreakpointFile' returns wrong file for address breakpoints.
|
||||||
* CBreakpointManager.java
|
* CBreakpointManager.java
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class SourceUtils
|
||||||
public static ICSourceLocation[] getCommonSourceLocationsFromMemento( String memento )
|
public static ICSourceLocation[] getCommonSourceLocationsFromMemento( String memento )
|
||||||
{
|
{
|
||||||
ICSourceLocation[] result = new ICSourceLocation[0];
|
ICSourceLocation[] result = new ICSourceLocation[0];
|
||||||
if ( memento != null )
|
if ( !isEmpty( memento ) )
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -173,4 +173,9 @@ public class SourceUtils
|
||||||
}
|
}
|
||||||
return (ICSourceLocation[])sourceLocations.toArray( new ICSourceLocation[sourceLocations.size()] );
|
return (ICSourceLocation[])sourceLocations.toArray( new ICSourceLocation[sourceLocations.size()] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static boolean isEmpty( String string )
|
||||||
|
{
|
||||||
|
return ( string == null || string.trim().length() == 0 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue