Changeset ab7055e950e3c4d3c96db0a6ca914655c84895c6
- Timestamp:
- 08/11/07 09:45:16
(1 year ago)
- Author:
- Christopher Jung <bktheg@web.de>
- git-committer:
- Christopher Jung <bktheg@web.de> 1186818316 +0200
- git-parent:
[548df42f8807e2be470936e582eb1072ebeed33a]
- git-author:
- Christopher Jung <bktheg@web.de> 1186818316 +0200
- Message:
getShipType wirft nun wieder NoSuchShipTypeExceptions?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r548df42 |
rab7055e |
|
| 3116 | 3116 | if( !plaindata ) { |
|---|
| 3117 | 3117 | ShipType type = (ShipType)db.get(ShipType.class, shiptype); |
|---|
| 3118 | | |
|---|
| | 3118 | if( type == null ) { |
|---|
| | 3119 | throw new NoSuchShipTypeException("Der Schiffstyp "+shiptype+" existiert nicht"); |
|---|
| | 3120 | } |
|---|
| | 3121 | |
|---|
| 3119 | 3122 | String picture = ""; |
|---|
| 3120 | 3123 | if( shipdata == null ) { |
|---|
| … | … | |
| 3129 | 3132 | } |
|---|
| 3130 | 3133 | |
|---|
| 3131 | | return (shipdata != null ? shipdata : (ShipType)db.get(ShipType.class, shiptype)); |
|---|
| | 3134 | if( shipdata != null ) { |
|---|
| | 3135 | return shipdata; |
|---|
| | 3136 | } |
|---|
| | 3137 | |
|---|
| | 3138 | ShipType type = (ShipType)db.get(ShipType.class, shiptype); |
|---|
| | 3139 | if( type == null ) { |
|---|
| | 3140 | throw new NoSuchShipTypeException("Der Schiffstyp "+shiptype+" existiert nicht"); |
|---|
| | 3141 | } |
|---|
| | 3142 | |
|---|
| | 3143 | return type; |
|---|
| 3132 | 3144 | } |
|---|
| 3133 | 3145 | |
|---|