Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
38297a84
Commit
38297a84
authored
8 years ago
by
apoorvnaik
Committed by
Madhan Neethiraj
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1997: fix to avoid NPE while getting vertex_indices
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
eb5d6fcd
master
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
GraphBackedSearchIndexer.java
...ache/atlas/repository/graph/GraphBackedSearchIndexer.java
+4
-2
No files found.
repository/src/main/java/org/apache/atlas/repository/graph/GraphBackedSearchIndexer.java
View file @
38297a84
...
...
@@ -263,10 +263,11 @@ public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChang
}
if
(
management
!=
null
)
{
recomputeIndexedKeys
=
false
;
AtlasGraphIndex
vertexIndex
=
management
.
getGraphIndex
(
Constants
.
VERTEX_INDEX
);
if
(
vertexIndex
!=
null
)
{
recomputeIndexedKeys
=
false
;
Set
<
String
>
indexKeys
=
new
HashSet
<>();
for
(
AtlasPropertyKey
fieldKey
:
vertexIndex
.
getFieldKeys
())
{
...
...
@@ -276,6 +277,7 @@ public class GraphBackedSearchIndexer implements SearchIndexer, ActiveStateChang
vertexIndexKeys
=
indexKeys
;
}
}
}
return
vertexIndexKeys
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment