Check appearance and option array lengths.
This commit is contained in:
@@ -153,7 +153,11 @@ public class OptionData implements IXmlReader
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
return _options[id];
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user