Check appearance and option array lengths.

This commit is contained in:
MobiusDevelopment 2020-11-02 23:08:36 +00:00
parent 5a5f71d2c7
commit 494b39a3ab
36 changed files with 180 additions and 36 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.