diff options
Diffstat (limited to 'ihl/flexible_cable/IHLENet.java')
| -rw-r--r-- | ihl/flexible_cable/IHLENet.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ihl/flexible_cable/IHLENet.java b/ihl/flexible_cable/IHLENet.java index cf0670d..2d4ec23 100644 --- a/ihl/flexible_cable/IHLENet.java +++ b/ihl/flexible_cable/IHLENet.java @@ -67,6 +67,8 @@ public class IHLENet { public IHLGrid getGrid(int gridID)
{
+ if(gridID==-1)
+ throw new IllegalArgumentException("Node should never ask grid with ID -1");
if(this.grids.get(gridID)==null)
{
IHLGrid cgrid;
|
