Check appearance and option array lengths.
This commit is contained in:
parent
5a5f71d2c7
commit
494b39a3ab
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -151,9 +151,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -152,9 +152,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -152,9 +152,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
@ -154,9 +154,13 @@ public class AppearanceItemData implements IXmlReader
|
||||
}
|
||||
|
||||
public AppearanceStone getStone(int stone)
|
||||
{
|
||||
if (_stones.length >= stone)
|
||||
{
|
||||
return _stones[stone];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of AppearanceItemData.
|
||||
|
@ -118,9 +118,13 @@ public class OptionData implements IXmlReader
|
||||
}
|
||||
|
||||
public Options getOptions(int id)
|
||||
{
|
||||
if (_options.length >= id)
|
||||
{
|
||||
return _options[id];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the single instance of OptionsData.
|
||||
|
Loading…
Reference in New Issue
Block a user