Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointer Exception when fetching Newcastle #13

Open
jenshoffmann1331 opened this issue Oct 8, 2020 · 2 comments
Open

NullPointer Exception when fetching Newcastle #13

jenshoffmann1331 opened this issue Oct 8, 2020 · 2 comments

Comments

@jenshoffmann1331
Copy link

jenshoffmann1331 commented Oct 8, 2020

Fix: Newcastle UK -> Newcastle GB

diff --git a/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java b/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java
index cc029b8..02973ce 100644
--- a/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java
+++ b/src/main/java/org/infinispan/tutorial/embedded/WeatherApp.java
@@ -6,7 +6,7 @@ import org.infinispan.manager.EmbeddedCacheManager;
 public class WeatherApp {
 
    static final String[] locations = { "Rome, Italy", "Como, Italy", "Basel, Switzerland", "Bern, Switzerland",
-         "London, UK", "Newcastle, UK", "Bucarest, Romania", "Cluj-Napoca, Romania", "Ottawa, Canada",
+         "London, UK", "Newcastle, GB", "Bucarest, Romania", "Cluj-Napoca, Romania", "Ottawa, Canada",
          "Toronto, Canada", "Lisbon, Portugal", "Porto, Portugal", "Raleigh, USA", "Washington, USA" };
    private final EmbeddedCacheManager cacheManager;
    private final WeatherService weatherService;
@Shengche
Copy link

I fixed this issue and modified open weather map api parameters, can i make a pull request on Step 0?

@tristantarrant
Copy link
Member

yes please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants