mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
RESOLVED - bug 166964: MBSCustomPageData#getNatures() NPE
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166964
This commit is contained in:
parent
1ce81432d7
commit
2e67b3650f
1 changed files with 3 additions and 0 deletions
|
@ -157,6 +157,9 @@ public final class MBSCustomPageData
|
||||||
*/
|
*/
|
||||||
public String[] getNatures()
|
public String[] getNatures()
|
||||||
{
|
{
|
||||||
|
if (natureSet == null || natureSet.size() == 0)
|
||||||
|
return null;
|
||||||
|
|
||||||
Object[] objArray = natureSet.toArray();
|
Object[] objArray = natureSet.toArray();
|
||||||
|
|
||||||
String[] strArray = new String[objArray.length];
|
String[] strArray = new String[objArray.length];
|
||||||
|
|
Loading…
Add table
Reference in a new issue