Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
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
openSource
apollo
Commits
8737d49c
Commit
8737d49c
authored
Jun 08, 2016
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent crash when app.id is not set
parent
a0bee9d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
RemoteConfigRepository.java
...ip/framework/apollo/internals/RemoteConfigRepository.java
+7
-0
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/internals/RemoteConfigRepository.java
View file @
8737d49c
...
...
@@ -259,6 +259,7 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
}
private
void
scheduleLongPollingRefresh
()
{
try
{
final
String
appId
=
m_configUtil
.
getAppId
();
final
String
cluster
=
m_configUtil
.
getCluster
();
final
String
dataCenter
=
m_configUtil
.
getDataCenter
();
...
...
@@ -268,6 +269,12 @@ public class RemoteConfigRepository extends AbstractConfigRepository {
doLongPollingRefresh
(
appId
,
cluster
,
dataCenter
);
}
});
}
catch
(
Throwable
ex
)
{
ApolloConfigException
exception
=
new
ApolloConfigException
(
"Schedule long polling refresh failed"
,
ex
);
Cat
.
logError
(
exception
);
logger
.
warn
(
ExceptionUtil
.
getDetailMessage
(
exception
));
}
}
private
void
doLongPollingRefresh
(
String
appId
,
String
cluster
,
String
dataCenter
)
{
...
...
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