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
51290693
Commit
51290693
authored
6 years ago
by
Diego Marino Monetti
Committed by
nixonrodrigues
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3201:- Fix getByGuid in AtlasTypeRegistry, doesn't raise exception if guid invalid
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
75ee78bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
AtlasTypeRegistry.java
...rc/main/java/org/apache/atlas/type/AtlasTypeRegistry.java
+3
-1
No files found.
intg/src/main/java/org/apache/atlas/type/AtlasTypeRegistry.java
View file @
51290693
...
...
@@ -116,12 +116,14 @@ public class AtlasTypeRegistry {
return
ret
;
}
public
AtlasType
getTypeByGuid
(
String
guid
)
{
public
AtlasType
getTypeByGuid
(
String
guid
)
throws
AtlasBaseException
{
if
(
LOG
.
isDebugEnabled
())
{
LOG
.
debug
(
"==> AtlasTypeRegistry.getTypeByGuid({})"
,
guid
);
}
AtlasType
ret
=
registryData
.
allTypes
.
getTypeByGuid
(
guid
);
if
(
ret
==
null
)
throw
new
AtlasBaseException
(
AtlasErrorCode
.
TYPE_GUID_NOT_FOUND
,
guid
);
if
(
LOG
.
isDebugEnabled
())
{
LOG
.
debug
(
"<== AtlasTypeRegistry.getTypeByGuid({}): {}"
,
guid
,
ret
);
...
...
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