| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 385f969 commit dcb0647
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1204,10 +1204,11 @@ public WeakHashMap<WrappedPosition, Integer> getWrappedPositionOffsets() { | |||
| 1204 | 1204 | WeakHashMap<WrappedPosition, Integer> ret = new WeakHashMap<WrappedPosition, Integer>(_wrappedPosList.size()); | |
| 1205 | 1205 | ||
| 1206 | 1206 | for (WeakReference<WrappedPosition> wr: _wrappedPosList) { | |
| 1207 | - if (wr.get() != null) { | ||
| 1207 | + WrappedPosition ref = wr.get(); | ||
| 1208 | + if (ref != null) { | ||
| 1208 | 1209 | // hasn't been garbage-collected yet | |
| 1209 | 1210 | newList.add(wr); | |
| 1210 | - ret.put(wr.get(), wr.get().getOffset()); | ||
| 1211 | + ret.put(ref, ref.getOffset()); | ||
| 1211 | 1212 | } | |
| 1212 | 1213 | } | |
| 1213 | 1214 | _wrappedPosList.clear(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments