Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

aemey
aemey
Offline

Badges

Badges
5

Accepted Solutions

Accepted Solutions
0

Likes

Likes
3

Posts

Posts
5

Discussions

Discussions
1

Questions

Questions
4

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by aemey
Customize the badges you want to showcase on your profile
Re: JUnit 5 throws java.lang.NullPointerException: Cannot invoke "org.apache.sling.api.resource.Resource.getPath()" because "parent" is null
Avatar
Give Back 800
Community Advisor
Vijayalakshmi_S
Community Advisor

Likes

814 likes

Total Posts

896 posts

Correct reply

293 solutions
Top badges earned
Give Back 800
Affirm 250
Give Back 700
Give back 600
Give Back 500
View profile
Vijayalakshmi_S
- Adobe Experience Manager
@aemey, "parent is null" in NPE refers to the first argument on the create method which is nothing but the parent resource under which we are trying to create a resource. Resource resource = resolver.create(resolver.getResource(folderPath), folderName,folderProperties);Cross check that the AemContext object in Test class is aware/set to the parent resource.

Views

52

Like

1

Replies

0
Re: Applying styles at SPA template layout level
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Hi, Thank you the response. Provided above examples are related to apply styles at page level policy. I am looking for layout level. Please check below screen shot. I don't see any issue for non-spa templates when I apply styles at layout level. Issue occurs only on SPA.Thanks

Views

50

Like

1

Replies

0
Re: AEM Cloud Service - Extend React SPA Sling Model for Page Style System support | AEM Community Blog Seeding
Avatar
Boost 3
Level 2
aemey
Level 2

Likes

3 likes

Total Posts

5 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back 3
Ignite 1
Boost 1
Give Back
View profile
aemey
- Adobe Experience Manager
Hi, Is it possible to apply styles at layout level in SPA. I tried your above example without writing any code and worked as expected in SPA page level. Is there any reference/documentation to point out layout level for SPA. Thanks.

Views

47

Like

1

Replies

0
Likes from