■ ■ ■ ■ ■ ■
server-core/src/main/java/io/onedev/server/web/component/diff/revision/RevisionDiffPanel.java
| skipped 213 lines |
214 | 214 | | Matcher matcher = new PathMatcher(); |
215 | 215 | | for (BlobChange change: changes) { |
216 | 216 | | String oldPath = change.getOldBlobIdent().path; |
217 | | - | if (oldPath == null) |
218 | | - | oldPath = ""; |
219 | | - | else |
| 217 | + | if (oldPath != null) |
220 | 218 | | oldPath = oldPath.toLowerCase(); |
221 | 219 | | String newPath = change.getNewBlobIdent().path; |
222 | | - | if (newPath == null) |
223 | | - | newPath = ""; |
224 | | - | else |
| 220 | + | if (newPath != null) |
225 | 221 | | newPath = newPath.toLowerCase(); |
226 | | - | if (patternSet.matches(matcher, oldPath) || patternSet.matches(matcher, newPath)) { |
| 222 | + | if (oldPath != null && patternSet.matches(matcher, oldPath) |
| 223 | + | || newPath != null && patternSet.matches(matcher, newPath)) { |
227 | 224 | | filteredChanges.add(change); |
228 | 225 | | } |
229 | 226 | | } |
| skipped 1152 lines |